From c8d7888751d2ebe912b3d006bc9b2832b0896e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=80=9D=E6=B6=B5?= <10205501407@stu.ecnu.edu.cn> Date: Thu, 2 Jun 2022 14:34:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'=E5=89=8D=E7=AB=AF'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 前端/.eslintrc.js | 31 +++++++++++++++ 前端/.gitignore | 14 +++++++ 前端/README.md | 12 ++++++ 前端/project.config.json | 81 ++++++++++++++++++++++++++++++++++++++ 前端/project.private.config.json | 57 +++++++++++++++++++++++++++ 前端/uploadCloudFunction.bat | 1 + 6 files changed, 196 insertions(+) create mode 100644 前端/.eslintrc.js create mode 100644 前端/.gitignore create mode 100644 前端/README.md create mode 100644 前端/project.config.json create mode 100644 前端/project.private.config.json create mode 100644 前端/uploadCloudFunction.bat diff --git a/前端/.eslintrc.js b/前端/.eslintrc.js new file mode 100644 index 0000000..3df6ebe --- /dev/null +++ b/前端/.eslintrc.js @@ -0,0 +1,31 @@ +/* + * Eslint config file + * Documentation: https://eslint.org/docs/user-guide/configuring/ + * Install the Eslint extension before using this feature. + */ +module.exports = { + env: { + es6: true, + browser: true, + node: true, + }, + ecmaFeatures: { + modules: true, + }, + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + }, + globals: { + wx: true, + App: true, + Page: true, + getCurrentPages: true, + getApp: true, + Component: true, + requirePlugin: true, + requireMiniProgram: true, + }, + // extends: 'eslint:recommended', + rules: {}, +} diff --git a/前端/.gitignore b/前端/.gitignore new file mode 100644 index 0000000..10fa70b --- /dev/null +++ b/前端/.gitignore @@ -0,0 +1,14 @@ +# Windows +[Dd]esktop.ini +Thumbs.db +$RECYCLE.BIN/ + +# macOS +.DS_Store +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes + +# Node.js +node_modules/ diff --git a/前端/README.md b/前端/README.md new file mode 100644 index 0000000..444de70 --- /dev/null +++ b/前端/README.md @@ -0,0 +1,12 @@ +一餐一食开发文档: +**by wlm** 2022年1月19日19点42分 + pages已经移至miniprogram文件夹下 + 已修改app.js里的环境ID +**by wlm** 2022年1月20日15点10分 + **删除了多余的图片** + 目前分别开发阶段的git原则: + **只修改自己的页面** + **从远程拉取(实心箭头)origin/project分支,合并方式选择合并** + **合并好再推送** + **如果有修改别人的页面的需求,请提前联系那个人,让他先推送,然后你再修改(这期间他就不要再修改了),然后你再按照上述方法合并分支并推送。** + diff --git a/前端/project.config.json b/前端/project.config.json new file mode 100644 index 0000000..980c7ae --- /dev/null +++ b/前端/project.config.json @@ -0,0 +1,81 @@ +{ + "miniprogramRoot": "miniprogram/", + "cloudfunctionRoot": "cloudfunctions/", + "setting": { + "urlCheck": false, + "es6": true, + "enhance": true, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": true, + "coverView": true, + "nodeModules": true, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "lazyloadPlaceholderEnable": false, + "useMultiFrameRuntime": true, + "useApiHook": true, + "useApiHostProcess": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "useIsolateContext": true, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true, + "disableUseStrict": false, + "minifyWXML": true, + "showES6CompileOption": false, + "useCompilerPlugins": false, + "ignoreUploadUnusedFiles": true, + "useStaticServer": true + }, + "appid": "wxfe8ce21bac42fa47", + "projectname": "YCYS", + "libVersion": "2.19.4", + "cloudfunctionTemplateRoot": "cloudfunctionTemplate/", + "condition": { + "search": { + "list": [] + }, + "conversation": { + "list": [] + }, + "plugin": { + "list": [] + }, + "game": { + "list": [] + }, + "miniprogram": { + "list": [ + { + "id": -1, + "name": "db guide", + "pathName": "pages/databaseGuide/databaseGuide" + } + ] + } + }, + "compileType": "miniprogram", + "srcMiniprogramRoot": "miniprogram/", + "packOptions": { + "ignore": [], + "include": [] + }, + "editorSetting": { + "tabIndent": "insertSpaces", + "tabSize": 4 + }, + "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html" +} \ No newline at end of file diff --git a/前端/project.private.config.json b/前端/project.private.config.json new file mode 100644 index 0000000..00227e4 --- /dev/null +++ b/前端/project.private.config.json @@ -0,0 +1,57 @@ +{ + "setting": {}, + "condition": { + "miniprogram": { + "list": [ + { + "name": "db guide", + "pathName": "pages/databaseGuide/databaseGuide", + "query": "" + }, + { + "name": "pages/getOpenId/index", + "pathName": "pages/getOpenId/index", + "query": "", + "scene": null + }, + { + "name": "pages/deployService/index", + "pathName": "pages/deployService/index", + "query": "", + "scene": null + }, + { + "name": "pages/selectRecord/index", + "pathName": "pages/selectRecord/index", + "query": "", + "scene": null + }, + { + "name": "pages/sumRecordResult/index", + "pathName": "pages/sumRecordResult/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecord/index", + "pathName": "pages/updateRecord/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecordResult/index", + "pathName": "pages/updateRecordResult/index", + "query": "", + "scene": null + }, + { + "name": "pages/updateRecordSuccess/index", + "pathName": "pages/updateRecordSuccess/index", + "query": "", + "scene": null + } + ] + } + }, + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html" +} \ No newline at end of file diff --git a/前端/uploadCloudFunction.bat b/前端/uploadCloudFunction.bat new file mode 100644 index 0000000..f1459e8 --- /dev/null +++ b/前端/uploadCloudFunction.bat @@ -0,0 +1 @@ +"D:\Program Files\΢web߹\cli.bat" cloud functions deploy --e cloud1-2guzyjye2f239106 --n quickstartFunctions --r --project "D:\Coding_Documents\yicanyishi\YCYS" --report_first --report \ No newline at end of file