diff --git a/data-room-ui/.babelrc b/data-room-ui/.babelrc new file mode 100644 index 00000000..c029ce67 --- /dev/null +++ b/data-room-ui/.babelrc @@ -0,0 +1,17 @@ +{ + "plugins": [ + [ + "component", + { + "libraryName": "gc-starter-ui", + "styleLibraryName": false + } + ] + ], + "env": { + "development":{ + // 将import方法转成require(),且是动态的 + "plugins":["dynamic-import-node"] + } + } +} \ No newline at end of file diff --git a/data-room-ui/.editorconfig b/data-room-ui/.editorconfig new file mode 100644 index 00000000..ea6e20f5 --- /dev/null +++ b/data-room-ui/.editorconfig @@ -0,0 +1,14 @@ +# http://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +insert_final_newline = false +trim_trailing_whitespace = false diff --git a/data-room-ui/.env.development b/data-room-ui/.env.development new file mode 100644 index 00000000..a2414b72 --- /dev/null +++ b/data-room-ui/.env.development @@ -0,0 +1,15 @@ +# just a flag +ENV = 'development' + +# base api +VUE_APP_BASE_API = '/gc-starter-server' + +VUE_APP_BUILD_TYPE = 'example' +# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, +# to control whether the babel-plugin-dynamic-import-node plugin is enabled. +# It only does one thing by converting all import() to require(). +# This configuration can significantly increase the speed of hot updates, +# when you have a large number of pages. +# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js + +VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/data-room-ui/.env.history b/data-room-ui/.env.history new file mode 100644 index 00000000..c17ccc50 --- /dev/null +++ b/data-room-ui/.env.history @@ -0,0 +1,11 @@ +NODE_ENV = production + +# just a flag +ENV = 'history' + +# VUE_APP_BASE为项目访问路径的前缀 +VUE_APP_BASE = '/gc-starter-lowcode-ui' +# VUE_APP_HISTORY为是否开启history模式 +VUE_APP_HISTORY = 'y' + +VUE_APP_BUILD_TYPE = 'example' \ No newline at end of file diff --git a/data-room-ui/.env.package b/data-room-ui/.env.package new file mode 100644 index 00000000..a6ec65a6 --- /dev/null +++ b/data-room-ui/.env.package @@ -0,0 +1,4 @@ +# just a flag +ENV = 'production' + +VUE_APP_BUILD_TYPE = 'package' diff --git a/data-room-ui/.env.production b/data-room-ui/.env.production new file mode 100644 index 00000000..c2cb22a6 --- /dev/null +++ b/data-room-ui/.env.production @@ -0,0 +1,7 @@ +# just a flag +ENV = 'production' + +# base api +VUE_APP_BASE_API = '/chuangDa' + +VUE_APP_BUILD_TYPE = 'example' \ No newline at end of file diff --git a/data-room-ui/.env.staging b/data-room-ui/.env.staging new file mode 100644 index 00000000..9e5971a8 --- /dev/null +++ b/data-room-ui/.env.staging @@ -0,0 +1,10 @@ +NODE_ENV = production + +# just a flag +ENV = 'staging' + +# base api +VUE_APP_BASE_API = '/stage-api' + +VUE_APP_BUILD_TYPE = 'example' + diff --git a/data-room-ui/.eslintignore b/data-room-ui/.eslintignore new file mode 100644 index 00000000..8c3497a1 --- /dev/null +++ b/data-room-ui/.eslintignore @@ -0,0 +1,6 @@ +build/*.js +src/assets +public/ +dist +node_modules/ +src/views/bigScreen/* diff --git a/data-room-ui/.eslintrc.js b/data-room-ui/.eslintrc.js new file mode 100644 index 00000000..c899941e --- /dev/null +++ b/data-room-ui/.eslintrc.js @@ -0,0 +1,40 @@ +/* + * @Author: wujian + * @Date: 2022-05-31 09:27:01 + * @LastEditors: xing.heng + * @LastEditTime: 2023-05-17 22:48:17 + */ +module.exports = { + root: true, + parserOptions: { + parser: '@babel/eslint-parser', + sourceType: 'module', + ecmaVersion: 2015 + }, + plugins: ['vue'], + env: { + browser: true, + node: true, + es6: true + }, + rules: { + // 忽略console警告 + 'no-console': 'off', + // 忽略v-html警告 + 'vue/no-v-html': 'off', + 'vue/multi-word-component-names': 'off', + 'vue/no-mutating-props': 'off', + 'no-prototype-builtins': 'off', + 'array-callback-return': 'off', + 'prefer-regex-literals': 'off', + 'multiline-ternary': 'off', + 'vue/order-in-components': 'off', + 'no-eval': 'off', + 'vue/no-template-shadow': 'off' + }, + extends: [ + 'plugin:vue/recommended', + 'eslint:recommended', + '@vue/standard' // 使eslint继承standard标准 + ] +} diff --git a/data-room-ui/.gitignore b/data-room-ui/.gitignore new file mode 100644 index 00000000..ac983195 --- /dev/null +++ b/data-room-ui/.gitignore @@ -0,0 +1,371 @@ +# data-room-uii.zip +# data-room-uii +chuangDa +chuangDa.zip +deploy.sh +dist +gc-starter-lowcode-ui +### VisualStudioCode template +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +### JetBrains template +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf +.idea +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Eclipse template +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath +.recommenders + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# PyDev specific (Python IDE for Eclipse) +*.pydevproject + +# CDT-specific (C/C++ Development Tooling) +.cproject + +# CDT- autotools +.autotools + +# Java annotation processor (APT) +.factorypath + +# PDT-specific (PHP Development Tools) +.buildpath + +# sbteclipse plugin +.target + +# Tern plugin +.tern-project + +# TeXlipse plugin +.texlipse + +# STS (Spring Tool Suite) +.springBeans + +# Code Recommenders +.recommenders/ + +# Annotation Processing +.apt_generated/ +.apt_generated_test/ + +# Scala IDE specific (Scala & Java development for Eclipse) +.cache-main +.scala_dependencies +.worksheet + +# Uncomment this line if you wish to ignore the project description file. +# Typically, this file would be tracked if it contains build/dependency configurations: +#.project + +### Node template +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache +.parcel-cache + +# Next.js build output +.next +out + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port + +# Stores VSCode versions used for testing VSCode extensions +.vscode-test + +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +### Vue template +# gitignore template for Vue.js projects +# +# Recommended template: Node.gitignore + +# TODO: where does this rule come from? +docs/_book + +# TODO: where does this rule come from? +test/ + +### Windows template +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +### macOS template +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### SublimeText template +# Cache files for Sublime Text +*.tmlanguage.cache +*.tmPreferences.cache +*.stTheme.cache + +# Workspace files are user-specific +*.sublime-workspace + +# Project files should be checked into the repository, unless a significant +# proportion of contributors will probably not be using Sublime Text +# *.sublime-project + +# SFTP configuration file +sftp-config.json +sftp-config-alt*.json + +# Package control specific files +Package Control.last-run +Package Control.ca-list +Package Control.ca-bundle +Package Control.system-ca-bundle +Package Control.cache/ +Package Control.ca-certs/ +Package Control.merged-ca-bundle +Package Control.user-ca-bundle +oscrypto-ca-bundle.crt +bh_unicode_properties.cache + +# Sublime-github package stores a github token in this file +# https://packagecontrol.io/packages/sublime-github +GitHub.sublime-settings + +lib +gc-starter-lowcode-ui diff --git a/data-room-ui/.npmrc b/data-room-ui/.npmrc new file mode 100644 index 00000000..e69de29b diff --git a/data-room-ui/README.md b/data-room-ui/README.md index 1c588d00..9a9a80d3 100644 --- a/data-room-ui/README.md +++ b/data-room-ui/README.md @@ -1,6 +1,6 @@ ## 📚简介
-
+
-
+