diff --git a/sites/net150.top/.editorconfig b/sites/net150.top/.editorconfig new file mode 100644 index 000000000..cb530eac4 --- /dev/null +++ b/sites/net150.top/.editorconfig @@ -0,0 +1,14 @@ +UTF-8 +# This file is for unifying the coding style for different editors and IDEs +# editorconfig.org +root = true +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +[*.{js,styl,html,json,vue}] +indent_size = 2 +indent_style = space +[*.md] +trim_trailing_whitespace = false diff --git a/sites/net150.top/.eslintignore b/sites/net150.top/.eslintignore new file mode 100644 index 000000000..db4c6d9b6 --- /dev/null +++ b/sites/net150.top/.eslintignore @@ -0,0 +1,2 @@ +dist +node_modules \ No newline at end of file diff --git a/sites/net150.top/.eslintrc b/sites/net150.top/.eslintrc new file mode 100644 index 000000000..84a3a2e9c --- /dev/null +++ b/sites/net150.top/.eslintrc @@ -0,0 +1,39 @@ +{ + "parser": "vue-eslint-parser", + "parserOptions": { + "ecmaVersion": 8, + "sourceType": "module", + "allowImportExportEverywhere": false + }, + "extends": [ + "standard", + "plugin:vue/recommended" + ], + "plugins": [ + "jsdoc" + ], + "globals": { + "MIP": true + }, + "env": { + "browser": true + }, + "rules": { + "jsdoc/check-param-names": 1, + "jsdoc/check-tag-names": 1, + "jsdoc/check-types": 1, + "jsdoc/newline-after-description": 1, + "jsdoc/no-undefined-types": 1, + "jsdoc/require-description-complete-sentence": 0, + "jsdoc/require-example": 0, + "jsdoc/require-hyphen-before-param-description": 0, + "jsdoc/require-param": 1, + "jsdoc/require-param-description": 1, + "jsdoc/require-param-name": 1, + "jsdoc/require-param-type": 1, + "jsdoc/require-returns-description": 1, + "jsdoc/require-returns-type": 1, + "jsdoc/valid-types": 1, + "no-var": 2 + } +} diff --git a/sites/net150.top/.gitignore b/sites/net150.top/.gitignore new file mode 100644 index 000000000..1207415d5 --- /dev/null +++ b/sites/net150.top/.gitignore @@ -0,0 +1,8 @@ +node_modules/ +dist/ +.idea/ +*.log +Thumbs.db +.DS_Store +*.swp +*.gz diff --git a/sites/net150.top/common/.gitkeep b/sites/net150.top/common/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/sites/net150.top/components/mip-test/README.md b/sites/net150.top/components/mip-test/README.md new file mode 100644 index 000000000..18910755c --- /dev/null +++ b/sites/net150.top/components/mip-test/README.md @@ -0,0 +1,31 @@ +# mip-test + +标题|内容 +----|---- +类型| +支持布局| +所需脚本| [https://c.mipcdn.com/extensions/platform/v2/net150.top/mip-test/mip-test.js](https://c.mipcdn.com/extensions/platform/v2/net150.top/mip-test/mip-test.js) + +## 说明 + +组件功能说明 + +## 示例 + +示例说明 + +``` +// 代码示例 +``` + +## 属性 + +### 属性1 + +**说明**: + +**必选项**: + +**单位**: + +**默认值**: \ No newline at end of file diff --git a/sites/net150.top/components/mip-test/example/index.html b/sites/net150.top/components/mip-test/example/index.html new file mode 100644 index 000000000..10feb2f4a --- /dev/null +++ b/sites/net150.top/components/mip-test/example/index.html @@ -0,0 +1,21 @@ + + + + + + MIP page + + + + + +
+ 嗯嗯嗯 + +
+ + + + diff --git a/sites/net150.top/components/mip-test/index.less b/sites/net150.top/components/mip-test/index.less new file mode 100644 index 000000000..710d02caa --- /dev/null +++ b/sites/net150.top/components/mip-test/index.less @@ -0,0 +1,6 @@ +mip-test { + .wrapper { + margin: 0 auto; + text-align: center; + } +} diff --git a/sites/net150.top/components/mip-test/mip-test.js b/sites/net150.top/components/mip-test/mip-test.js new file mode 100644 index 000000000..17bc3a3d7 --- /dev/null +++ b/sites/net150.top/components/mip-test/mip-test.js @@ -0,0 +1,10 @@ +import './index.less' + +export default class MIPTest extends MIP.CustomElement { + build () { + let wrapper = document.createElement('div') + wrapper.classList.add('wrapper') + wrapper.innerHTML = `

上传测试

` + this.element.appendChild(wrapper) + } +} diff --git a/sites/net150.top/example/index.html b/sites/net150.top/example/index.html new file mode 100644 index 000000000..a0ad2dec7 --- /dev/null +++ b/sites/net150.top/example/index.html @@ -0,0 +1,26 @@ + + + + + + MIP page + + + + + +
+

First MIP page

+

Add MIP components here

+ +
+ + + + diff --git a/sites/net150.top/mip.config.js b/sites/net150.top/mip.config.js new file mode 100644 index 000000000..d5457bef4 --- /dev/null +++ b/sites/net150.top/mip.config.js @@ -0,0 +1,31 @@ +/** + * @file mip页面项目配置项 + * @author + */ + +module.exports = { + dev: { + /** + * 启动mip server调试的端口号 + * + * @type {number} + */ + port: 8111, + + /** + * 启用调试页面自动刷新 + * + * @type {boolean} + */ + livereload: true, + + /** + * server 启动自动打开页面,false 为关闭 + * 如: + * autoopen: '/example/index.html' + * + * @type {string|boolean} + */ + autoopen: false + } +} diff --git a/sites/net150.top/package.json b/sites/net150.top/package.json new file mode 100644 index 000000000..c89ac83b5 --- /dev/null +++ b/sites/net150.top/package.json @@ -0,0 +1,25 @@ +{ + "name": "net150.top", + "version": "0.0.1", + "description": "重庆NWT150家政服务官网", + "scripts": { + "dev": "mip2 dev", + "build": "mip2 build", + "lint": "npm run lint:js", + "lint:js": "eslint --ext .vue,.js .", + "fix": "npm run fix:js", + "fix:js": "eslint --ext .vue,.js . --fix" + }, + "author": "chenhao", + "dependencies": {}, + "devDependencies": { + "eslint": "^4.19.1", + "eslint-config-standard": "^11.0.0", + "eslint-plugin-import": "^2.12.0", + "eslint-plugin-jsdoc": "^3.7.1", + "eslint-plugin-node": "^6.0.1", + "eslint-plugin-promise": "^3.8.0", + "eslint-plugin-standard": "^3.1.0", + "eslint-plugin-vue": "^4.5.0" + } +} diff --git a/sites/net150.top/static/.gitkeep b/sites/net150.top/static/.gitkeep new file mode 100644 index 000000000..e69de29bb