diff --git a/sites/m.jia.com/.editorconfig b/sites/m.jia.com/.editorconfig new file mode 100644 index 000000000..cb530eac4 --- /dev/null +++ b/sites/m.jia.com/.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/m.jia.com/.eslintignore b/sites/m.jia.com/.eslintignore new file mode 100644 index 000000000..db4c6d9b6 --- /dev/null +++ b/sites/m.jia.com/.eslintignore @@ -0,0 +1,2 @@ +dist +node_modules \ No newline at end of file diff --git a/sites/m.jia.com/.eslintrc b/sites/m.jia.com/.eslintrc new file mode 100644 index 000000000..84a3a2e9c --- /dev/null +++ b/sites/m.jia.com/.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/m.jia.com/.gitignore b/sites/m.jia.com/.gitignore new file mode 100644 index 000000000..1207415d5 --- /dev/null +++ b/sites/m.jia.com/.gitignore @@ -0,0 +1,8 @@ +node_modules/ +dist/ +.idea/ +*.log +Thumbs.db +.DS_Store +*.swp +*.gz diff --git a/sites/m.jia.com/common/.gitkeep b/sites/m.jia.com/common/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/sites/m.jia.com/components/mip-jia-zxgs/example/mip-example.html b/sites/m.jia.com/components/mip-jia-zxgs/example/mip-example.html new file mode 100644 index 000000000..1078d4384 --- /dev/null +++ b/sites/m.jia.com/components/mip-jia-zxgs/example/mip-example.html @@ -0,0 +1,21 @@ + + + + + + MIP page + + + + + +
+ +
+ + + + + + diff --git a/sites/m.jia.com/components/mip-jia-zxgs/mip-jia-zxgs.md b/sites/m.jia.com/components/mip-jia-zxgs/mip-jia-zxgs.md new file mode 100644 index 000000000..048db57d6 --- /dev/null +++ b/sites/m.jia.com/components/mip-jia-zxgs/mip-jia-zxgs.md @@ -0,0 +1,29 @@ +# `mip-jia-zxgs` + +标题|内容 +----|---- +类型| +支持布局| +所需脚本|[https://c.mipcdn.com/extensions/platform/v2/m.jia.com/mip-jia-zxgs/mip-jia-zxgs.js](https://c.mipcdn.com/extensions/platform/v2/m.jia.com/mip-jia-zxgs/mip-jia-zxgs.js) + +## 说明 + +推荐信息组件 + +## 示例 + + +示例说明 + +``` +// 代码示例 + +``` + +## 属性 + +### articleId + +**说明**:文章id + +**必选项**:是 diff --git a/sites/m.jia.com/components/mip-jia-zxgs/mip-jia-zxgs.vue b/sites/m.jia.com/components/mip-jia-zxgs/mip-jia-zxgs.vue new file mode 100644 index 000000000..86e472fa0 --- /dev/null +++ b/sites/m.jia.com/components/mip-jia-zxgs/mip-jia-zxgs.vue @@ -0,0 +1,930 @@ + + + diff --git a/sites/m.jia.com/example/index.html b/sites/m.jia.com/example/index.html new file mode 100644 index 000000000..e207733ca --- /dev/null +++ b/sites/m.jia.com/example/index.html @@ -0,0 +1,26 @@ + + + + + + MIP page + + + + + +
+

First MIP page

+

Add MIP components here

+ +
+ + + + diff --git a/sites/m.jia.com/mip.config.js b/sites/m.jia.com/mip.config.js new file mode 100644 index 000000000..d5457bef4 --- /dev/null +++ b/sites/m.jia.com/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/m.jia.com/package.json b/sites/m.jia.com/package.json new file mode 100644 index 000000000..d52b3e552 --- /dev/null +++ b/sites/m.jia.com/package.json @@ -0,0 +1,25 @@ +{ + "name": "m.jia.com", + "version": "0.0.1", + "description": "A MIP project", + "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": "tao (165526381@qq.com)", + "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/m.jia.com/static/.gitkeep b/sites/m.jia.com/static/.gitkeep new file mode 100644 index 000000000..e69de29bb