├── .babelrc
├── .editorconfig
├── .eslintignore
├── .eslintrc.js
├── .gitignore
├── .postcssrc.js
├── LICENSE
├── README.md
├── build
├── build.js
├── check-versions.js
├── dev-client.js
├── dev-server.js
├── utils.js
├── vue-loader.conf.js
├── webpack.base.conf.js
├── webpack.dev.conf.js
├── webpack.prod.conf.js
└── webpack.test.conf.js
├── config
├── dev.env.js
├── index.js
├── prod.env.js
└── test.env.js
├── docs
├── .gitkeep
├── index.html
└── static
│ ├── X-Logo.svg
│ ├── app.png
│ ├── apps
│ ├── AccountManagement
│ │ └── logo.png
│ ├── AmapDitu
│ │ └── logo.png
│ ├── ApplicationMarket
│ │ └── logo.png
│ ├── BaiduFanyi
│ │ └── logo.png
│ ├── BaiduMap
│ │ └── logo.jpg
│ ├── Blog
│ │ └── logo.png
│ ├── GoFire
│ │ └── logo.png
│ ├── GoogleTranslate
│ │ └── logo.png
│ ├── PersonalCenter
│ │ └── logo.png
│ ├── Photoshop
│ │ └── logo.png
│ ├── SystemLog
│ │ └── logo.png
│ ├── Weather
│ │ └── logo.png
│ ├── Weixin
│ │ └── logo.png
│ ├── XBoard
│ │ └── logo.png
│ ├── XPlayer
│ │ └── logo.png
│ ├── iChat
│ │ └── logo.png
│ ├── iClock
│ │ └── logo.png
│ └── iImage
│ │ └── logo.png
│ ├── css
│ └── app.cb24c8f42551f68112ff84ec9805ef2d.css
│ ├── favicon.png
│ ├── fonts
│ ├── ionicons.05acfdb.woff
│ ├── ionicons.24712f6.ttf
│ └── ionicons.2c2ae06.eot
│ ├── img
│ └── ionicons.621bd38.svg
│ ├── js
│ ├── 0.d0e9f9532ee5b6b16dca.js
│ ├── app.1492f7bf24f00b11eac6.js
│ ├── manifest.ba6dc96e063d7ff69040.js
│ └── vendor.5c89224fd7e3d552a329.js
│ ├── loading.svg
│ ├── logo.png
│ ├── logo.psd
│ └── win7
│ ├── cursor.gif
│ ├── index.html
│ ├── logo.png
│ └── wallpaper.jpg
├── document
├── .nojekyll
├── README.md
├── RegEdit.md
├── index.html
└── screenshot
│ ├── 2020-01-01 09 58 47.png
│ ├── 2020-01-01 09 58 49 (2).png
│ ├── 2020-01-01 09 58 49.png
│ ├── 2020-01-01 09 58 50.png
│ ├── preview_mobile_admin_landscape_001.jpg
│ ├── preview_mobile_admin_landscape_002.jpg
│ ├── preview_mobile_admin_portrait_001.jpg
│ ├── preview_mobile_admin_portrait_002.jpg
│ ├── preview_mobile_admin_portrait_003.jpg
│ ├── preview_mobile_admin_portrait_004.jpg
│ ├── preview_mobile_home_portrait_001.jpg
│ ├── preview_mobile_home_portrait_002.jpg
│ ├── preview_pc_admin.gif
│ ├── preview_pc_admin_001.png
│ ├── preview_pc_admin_002.png
│ ├── preview_pc_admin_003.png
│ ├── preview_pc_admin_004.png
│ ├── preview_pc_admin_0913.png
│ ├── preview_pc_custom_window.png
│ ├── preview_pc_drag_resize.gif
│ └── preview_pc_home.png
├── index.html
├── package-lock.json
├── package.json
├── src
├── App.vue
├── apps
│ ├── AccountManagement
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── containers
│ │ │ ├── EditAccount.vue
│ │ │ └── SearchAccount.vue
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ └── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ ├── ApplicationMarket
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ └── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ ├── BaiduFanyi
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── md-swap.svg
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ ├── DemoApp
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ ├── GoFire
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── components
│ │ │ ├── ContentPage.vue
│ │ │ └── TabPage.vue
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ ├── GoogleTranslate
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ └── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ ├── PersonalCenter
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ ├── SystemLog
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── components
│ │ │ ├── DetailLog.vue
│ │ │ └── SearchLogs.vue
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ ├── SystemSetting
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ ├── Weather
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ └── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ ├── Weixin
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ └── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ ├── XPlayer
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── components
│ │ │ ├── DVideoPlayer.vue
│ │ │ └── VideoPlayer.vue
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ ├── iChat
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ ├── iClock
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── pages
│ │ │ └── MainPage.vue
│ │ ├── store
│ │ │ ├── actions.js
│ │ │ ├── index.js
│ │ │ ├── mutations.js
│ │ │ └── state.js
│ │ └── uninstall
│ │ │ └── Index.vue
│ └── iImage
│ │ ├── Index.vue
│ │ ├── api.js
│ │ ├── config.js
│ │ ├── contextMenu.js
│ │ ├── install
│ │ └── Index.vue
│ │ ├── openApi.js
│ │ ├── pages
│ │ └── MainPage.vue
│ │ ├── store
│ │ ├── actions.js
│ │ ├── index.js
│ │ ├── mutations.js
│ │ └── state.js
│ │ └── uninstall
│ │ └── Index.vue
├── config.js
├── global
│ ├── components
│ │ ├── Error404.vue
│ │ ├── HighLight.vue
│ │ ├── Install.vue
│ │ ├── NoData.vue
│ │ ├── RainDay.vue
│ │ ├── Switch.vue
│ │ ├── UPanel.vue
│ │ ├── Uninstall.vue
│ │ ├── WallpaperBackground.vue
│ │ └── index.js
│ ├── directives
│ │ └── XDrag.js
│ ├── lib
│ │ └── rainyday.js
│ ├── plugin
│ │ ├── Window
│ │ │ └── index.js
│ │ └── index.js
│ └── utils
│ │ ├── DisableDebugger.js
│ │ ├── bus.js
│ │ ├── filters.js
│ │ ├── index.js
│ │ ├── install.js
│ │ ├── store.js
│ │ ├── timeConsuming.js
│ │ └── uninstall.js
├── main.js
├── platform
│ ├── Index.vue
│ ├── apps
│ │ ├── Admin
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ ├── openApi.js
│ │ │ └── store
│ │ │ │ ├── actions.js
│ │ │ │ ├── index.js
│ │ │ │ ├── mutations.js
│ │ │ │ └── state.js
│ │ ├── ContextMenu
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── components
│ │ │ │ └── ContextMenuItem.vue
│ │ │ ├── config.js
│ │ │ └── openApi.js
│ │ ├── Desktop
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ ├── openApi.js
│ │ │ └── store
│ │ │ │ ├── actions.js
│ │ │ │ ├── index.js
│ │ │ │ ├── mutations.js
│ │ │ │ └── state.js
│ │ ├── DesktopIcon
│ │ │ ├── Index.vue
│ │ │ ├── config.js
│ │ │ └── contextMenu.js
│ │ ├── DesktopWidget
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ └── openApi.js
│ │ ├── Home
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ └── openApi.js
│ │ ├── Login
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ ├── openApi.js
│ │ │ └── store
│ │ │ │ ├── actions.js
│ │ │ │ ├── index.js
│ │ │ │ ├── mutations.js
│ │ │ │ └── state.js
│ │ ├── SplitScreen
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ ├── openApi.js
│ │ │ └── store
│ │ │ │ ├── actions.js
│ │ │ │ ├── index.js
│ │ │ │ ├── mutations.js
│ │ │ │ └── state.js
│ │ ├── StartMenu
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ ├── images
│ │ │ │ ├── StartMenu.png
│ │ │ │ └── StartMenu_old.png
│ │ │ └── openApi.js
│ │ ├── TaskBar
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ └── openApi.js
│ │ ├── TaskBarIconBox
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── components
│ │ │ │ └── TaskBarIcon.vue
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ └── openApi.js
│ │ ├── TaskBarWidget
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ └── openApi.js
│ │ ├── Wallpaper
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ ├── openApi.js
│ │ │ └── store
│ │ │ │ ├── actions.js
│ │ │ │ ├── index.js
│ │ │ │ ├── mutations.js
│ │ │ │ └── state.js
│ │ └── Window
│ │ │ ├── Index.vue
│ │ │ ├── api.js
│ │ │ ├── components
│ │ │ ├── WinIFrame.vue
│ │ │ └── WinModal.vue
│ │ │ ├── config.js
│ │ │ ├── contextMenu.js
│ │ │ └── openApi.js
│ └── config.js
├── routers.js
├── store
│ ├── apps
│ │ ├── actions.js
│ │ ├── index.js
│ │ ├── mutations.js
│ │ └── state.js
│ └── platform
│ │ ├── actions.js
│ │ ├── index.js
│ │ ├── mutations.js
│ │ └── state.js
└── themes
│ └── index.less
├── static
├── .gitkeep
├── X-Logo.svg
├── app.png
├── apps
│ ├── AccountManagement
│ │ └── logo.png
│ ├── AmapDitu
│ │ └── logo.png
│ ├── ApplicationMarket
│ │ └── logo.png
│ ├── BaiduFanyi
│ │ └── logo.png
│ ├── BaiduMap
│ │ └── logo.jpg
│ ├── Blog
│ │ └── logo.png
│ ├── GoFire
│ │ └── logo.png
│ ├── GoogleTranslate
│ │ └── logo.png
│ ├── PersonalCenter
│ │ └── logo.png
│ ├── Photoshop
│ │ └── logo.png
│ ├── SystemLog
│ │ └── logo.png
│ ├── Weather
│ │ └── logo.png
│ ├── Weixin
│ │ └── logo.png
│ ├── XBoard
│ │ └── logo.png
│ ├── XPlayer
│ │ └── logo.png
│ ├── iChat
│ │ └── logo.png
│ ├── iClock
│ │ └── logo.png
│ └── iImage
│ │ └── logo.png
├── favicon.png
├── loading.svg
├── logo.png
├── logo.psd
└── win7
│ ├── cursor.gif
│ ├── index.html
│ ├── logo.png
│ └── wallpaper.jpg
└── test
├── e2e
├── custom-assertions
│ └── elementCount.js
├── nightwatch.conf.js
├── runner.js
└── specs
│ └── test.js
└── unit
├── .eslintrc
├── index.js
├── karma.conf.js
└── specs
└── Hello.spec.js
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["env", { "modules": false }],
4 | "stage-2"
5 | ],
6 | "plugins": ["transform-runtime"],
7 | "env": {
8 | "test": {
9 | "presets": ["env", "stage-2"],
10 | "plugins": [ "istanbul" ]
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | charset = utf-8
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
--------------------------------------------------------------------------------
/.eslintignore:
--------------------------------------------------------------------------------
1 | build/*.js
2 | config/*.js
3 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | // http://eslint.org/docs/user-guide/configuring
2 |
3 | module.exports = {
4 | root: true,
5 | parser: 'babel-eslint',
6 | parserOptions: {
7 | sourceType: 'module'
8 | },
9 | env: {
10 | browser: true,
11 | },
12 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
13 | extends: 'standard',
14 | // required to lint *.vue files
15 | plugins: [
16 | 'html'
17 | ],
18 | // add your custom rules here
19 | 'rules': {
20 | // allow paren-less arrow functions
21 | 'arrow-parens': 0,
22 | // allow async-await
23 | 'generator-star-spacing': 0,
24 | // allow debugger during development
25 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules/
3 | .idea/
4 | dist/
5 | npm-debug.log*
6 | yarn-debug.log*
7 | yarn-error.log*
8 | test/unit/coverage
9 | test/e2e/reports
10 | selenium-debug.log
11 | .idea
12 |
--------------------------------------------------------------------------------
/.postcssrc.js:
--------------------------------------------------------------------------------
1 | // https://github.com/michael-ciniawsky/postcss-load-config
2 |
3 | module.exports = {
4 | "plugins": {
5 | // to edit target browsers: use "browserlist" field in package.json
6 | "autoprefixer": {}
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 OXOYO
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/build/build.js:
--------------------------------------------------------------------------------
1 | require('./check-versions')()
2 |
3 | process.env.NODE_ENV = 'production'
4 |
5 | var ora = require('ora')
6 | var rm = require('rimraf')
7 | var path = require('path')
8 | var chalk = require('chalk')
9 | var webpack = require('webpack')
10 | var config = require('../config')
11 | var webpackConfig = require('./webpack.prod.conf')
12 |
13 | var spinner = ora('building for production...')
14 | spinner.start()
15 |
16 | rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
17 | if (err) throw err
18 | webpack(webpackConfig, function (err, stats) {
19 | spinner.stop()
20 | if (err) throw err
21 | process.stdout.write(stats.toString({
22 | colors: true,
23 | modules: false,
24 | children: false,
25 | chunks: false,
26 | chunkModules: false
27 | }) + '\n\n')
28 |
29 | console.log(chalk.cyan(' Build complete.\n'))
30 | console.log(chalk.yellow(
31 | ' Tip: built files are meant to be served over an HTTP server.\n' +
32 | ' Opening index.html over file:// won\'t work.\n'
33 | ))
34 | })
35 | })
36 |
--------------------------------------------------------------------------------
/build/check-versions.js:
--------------------------------------------------------------------------------
1 | var chalk = require('chalk')
2 | var semver = require('semver')
3 | var packageConfig = require('../package.json')
4 | var shell = require('shelljs')
5 | function exec (cmd) {
6 | return require('child_process').execSync(cmd).toString().trim()
7 | }
8 |
9 | var versionRequirements = [
10 | {
11 | name: 'node',
12 | currentVersion: semver.clean(process.version),
13 | versionRequirement: packageConfig.engines.node
14 | },
15 | ]
16 |
17 | if (shell.which('npm')) {
18 | versionRequirements.push({
19 | name: 'npm',
20 | currentVersion: exec('npm --version'),
21 | versionRequirement: packageConfig.engines.npm
22 | })
23 | }
24 |
25 | module.exports = function () {
26 | var warnings = []
27 | for (var i = 0; i < versionRequirements.length; i++) {
28 | var mod = versionRequirements[i]
29 | if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
30 | warnings.push(mod.name + ': ' +
31 | chalk.red(mod.currentVersion) + ' should be ' +
32 | chalk.green(mod.versionRequirement)
33 | )
34 | }
35 | }
36 |
37 | if (warnings.length) {
38 | console.log('')
39 | console.log(chalk.yellow('To use this template, you must update following to modules:'))
40 | console.log()
41 | for (var i = 0; i < warnings.length; i++) {
42 | var warning = warnings[i]
43 | console.log(' ' + warning)
44 | }
45 | console.log()
46 | process.exit(1)
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/build/dev-client.js:
--------------------------------------------------------------------------------
1 | /* eslint-disable */
2 | require('eventsource-polyfill')
3 | var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
4 |
5 | hotClient.subscribe(function (event) {
6 | if (event.action === 'reload') {
7 | window.location.reload()
8 | }
9 | })
10 |
--------------------------------------------------------------------------------
/build/dev-server.js:
--------------------------------------------------------------------------------
1 | require('./check-versions')()
2 |
3 | var config = require('../config')
4 | if (!process.env.NODE_ENV) {
5 | process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)
6 | }
7 |
8 | var opn = require('opn')
9 | var path = require('path')
10 | var express = require('express')
11 | var webpack = require('webpack')
12 | var proxyMiddleware = require('http-proxy-middleware')
13 | var webpackConfig = process.env.NODE_ENV === 'testing'
14 | ? require('./webpack.prod.conf')
15 | : require('./webpack.dev.conf')
16 |
17 | // default port where dev server listens for incoming traffic
18 | var port = process.env.PORT || config.dev.port
19 | // automatically open browser, if not set will be false
20 | var autoOpenBrowser = !!config.dev.autoOpenBrowser
21 | // Define HTTP proxies to your custom API backend
22 | // https://github.com/chimurai/http-proxy-middleware
23 | var proxyTable = config.dev.proxyTable
24 |
25 | var app = express()
26 | var compiler = webpack(webpackConfig)
27 |
28 | var devMiddleware = require('webpack-dev-middleware')(compiler, {
29 | publicPath: webpackConfig.output.publicPath,
30 | quiet: true
31 | })
32 |
33 | var hotMiddleware = require('webpack-hot-middleware')(compiler, {
34 | log: () => {}
35 | })
36 | // force page reload when html-webpack-plugin template changes
37 | compiler.plugin('compilation', function (compilation) {
38 | compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
39 | hotMiddleware.publish({ action: 'reload' })
40 | cb()
41 | })
42 | })
43 |
44 | // proxy api requests
45 | Object.keys(proxyTable).forEach(function (context) {
46 | var options = proxyTable[context]
47 | if (typeof options === 'string') {
48 | options = { target: options }
49 | }
50 | app.use(proxyMiddleware(options.filter || context, options))
51 | })
52 |
53 | // handle fallback for HTML5 history API
54 | app.use(require('connect-history-api-fallback')())
55 |
56 | // serve webpack bundle output
57 | app.use(devMiddleware)
58 |
59 | // enable hot-reload and state-preserving
60 | // compilation error display
61 | app.use(hotMiddleware)
62 |
63 | // serve pure static assets
64 | var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory)
65 | app.use(staticPath, express.static('./static'))
66 |
67 | var uri = 'http://localhost:' + port
68 |
69 | var _resolve
70 | var readyPromise = new Promise(resolve => {
71 | _resolve = resolve
72 | })
73 |
74 | console.log('> Starting dev server...')
75 | devMiddleware.waitUntilValid(() => {
76 | console.log('> Listening at ' + uri + '\n')
77 | // when env is testing, don't need open it
78 | if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') {
79 | opn(uri)
80 | }
81 | _resolve()
82 | })
83 |
84 | var server = app.listen(port)
85 |
86 | module.exports = {
87 | ready: readyPromise,
88 | close: () => {
89 | server.close()
90 | }
91 | }
92 |
--------------------------------------------------------------------------------
/build/utils.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var config = require('../config')
3 | var ExtractTextPlugin = require('extract-text-webpack-plugin')
4 |
5 | exports.assetsPath = function (_path) {
6 | var assetsSubDirectory = process.env.NODE_ENV === 'production'
7 | ? config.build.assetsSubDirectory
8 | : config.dev.assetsSubDirectory
9 | return path.posix.join(assetsSubDirectory, _path)
10 | }
11 |
12 | exports.cssLoaders = function (options) {
13 | options = options || {}
14 |
15 | var cssLoader = {
16 | loader: 'css-loader',
17 | options: {
18 | minimize: process.env.NODE_ENV === 'production',
19 | sourceMap: options.sourceMap
20 | }
21 | }
22 |
23 | // generate loader string to be used with extract text plugin
24 | function generateLoaders (loader, loaderOptions) {
25 | var loaders = [cssLoader]
26 | if (loader) {
27 | loaders.push({
28 | loader: loader + '-loader',
29 | options: Object.assign({}, loaderOptions, {
30 | sourceMap: options.sourceMap
31 | })
32 | })
33 | }
34 |
35 | // Extract CSS when that option is specified
36 | // (which is the case during production build)
37 | if (options.extract) {
38 | return ExtractTextPlugin.extract({
39 | use: loaders,
40 | fallback: 'vue-style-loader'
41 | })
42 | } else {
43 | return ['vue-style-loader'].concat(loaders)
44 | }
45 | }
46 |
47 | // https://vue-loader.vuejs.org/en/configurations/extract-css.html
48 | return {
49 | css: generateLoaders(),
50 | postcss: generateLoaders(),
51 | less: generateLoaders('less'),
52 | sass: generateLoaders('sass', { indentedSyntax: true }),
53 | scss: generateLoaders('sass'),
54 | stylus: generateLoaders('stylus'),
55 | styl: generateLoaders('stylus')
56 | }
57 | }
58 |
59 | // Generate loaders for standalone style files (outside of .vue)
60 | exports.styleLoaders = function (options) {
61 | var output = []
62 | var loaders = exports.cssLoaders(options)
63 | for (var extension in loaders) {
64 | var loader = loaders[extension]
65 | output.push({
66 | test: new RegExp('\\.' + extension + '$'),
67 | use: loader
68 | })
69 | }
70 | return output
71 | }
72 |
--------------------------------------------------------------------------------
/build/vue-loader.conf.js:
--------------------------------------------------------------------------------
1 | var utils = require('./utils')
2 | var config = require('../config')
3 | var isProduction = process.env.NODE_ENV === 'production'
4 |
5 | module.exports = {
6 | loaders: utils.cssLoaders({
7 | sourceMap: isProduction
8 | ? config.build.productionSourceMap
9 | : config.dev.cssSourceMap,
10 | extract: isProduction
11 | })
12 | }
13 |
--------------------------------------------------------------------------------
/build/webpack.base.conf.js:
--------------------------------------------------------------------------------
1 | var path = require('path')
2 | var utils = require('./utils')
3 | var config = require('../config')
4 | var vueLoaderConfig = require('./vue-loader.conf')
5 |
6 | function resolve (dir) {
7 | return path.join(__dirname, '..', dir)
8 | }
9 |
10 | module.exports = {
11 | entry: {
12 | app: ['babel-polyfill', './src/main.js']
13 | },
14 | output: {
15 | path: config.build.assetsRoot,
16 | filename: '[name].js',
17 | publicPath: process.env.NODE_ENV === 'production'
18 | ? config.build.assetsPublicPath
19 | : config.dev.assetsPublicPath
20 | },
21 | resolve: {
22 | extensions: ['.js', '.vue', '.json'],
23 | alias: {
24 | 'vue$': 'vue/dist/vue.esm.js',
25 | '@': resolve('src')
26 | }
27 | },
28 | module: {
29 | rules: [
30 | {
31 | test: /\.(js|vue)$/,
32 | loader: 'eslint-loader',
33 | enforce: 'pre',
34 | include: [resolve('src'), resolve('test')],
35 | options: {
36 | formatter: require('eslint-friendly-formatter')
37 | }
38 | },
39 | {
40 | test: /\.vue$/,
41 | loader: 'vue-loader',
42 | options: vueLoaderConfig
43 | },
44 | {
45 | test: /\.js$/,
46 | loader: 'babel-loader',
47 | include: [resolve('src'), resolve('test')]
48 | },
49 | {
50 | test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
51 | loader: 'url-loader',
52 | options: {
53 | limit: 10000,
54 | name: utils.assetsPath('img/[name].[hash:7].[ext]')
55 | }
56 | },
57 | {
58 | test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
59 | loader: 'url-loader',
60 | options: {
61 | limit: 10000,
62 | name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
63 | }
64 | }
65 | ]
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/build/webpack.dev.conf.js:
--------------------------------------------------------------------------------
1 | var utils = require('./utils')
2 | var webpack = require('webpack')
3 | var config = require('../config')
4 | var merge = require('webpack-merge')
5 | var baseWebpackConfig = require('./webpack.base.conf')
6 | var HtmlWebpackPlugin = require('html-webpack-plugin')
7 | var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
8 |
9 | // add hot-reload related code to entry chunks
10 | Object.keys(baseWebpackConfig.entry).forEach(function (name) {
11 | baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name])
12 | })
13 |
14 | module.exports = merge(baseWebpackConfig, {
15 | module: {
16 | rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap })
17 | },
18 | // cheap-module-eval-source-map is faster for development
19 | devtool: '#cheap-module-eval-source-map',
20 | plugins: [
21 | new webpack.DefinePlugin({
22 | 'process.env': config.dev.env
23 | }),
24 | // https://github.com/glenjamin/webpack-hot-middleware#installation--usage
25 | new webpack.HotModuleReplacementPlugin(),
26 | new webpack.NoEmitOnErrorsPlugin(),
27 | // https://github.com/ampedandwired/html-webpack-plugin
28 | new HtmlWebpackPlugin({
29 | filename: 'index.html',
30 | template: 'index.html',
31 | inject: true
32 | }),
33 | new FriendlyErrorsPlugin()
34 | ]
35 | })
36 |
--------------------------------------------------------------------------------
/build/webpack.test.conf.js:
--------------------------------------------------------------------------------
1 | // This is the webpack config used for unit tests.
2 |
3 | var utils = require('./utils')
4 | var webpack = require('webpack')
5 | var merge = require('webpack-merge')
6 | var baseConfig = require('./webpack.base.conf')
7 |
8 | var webpackConfig = merge(baseConfig, {
9 | // use inline sourcemap for karma-sourcemap-loader
10 | module: {
11 | rules: utils.styleLoaders()
12 | },
13 | devtool: '#inline-source-map',
14 | resolveLoader: {
15 | alias: {
16 | // necessary to to make lang="scss" work in test when using vue-loader's ?inject option
17 | // see discussion at https://github.com/vuejs/vue-loader/issues/724
18 | 'scss-loader': 'sass-loader'
19 | }
20 | },
21 | plugins: [
22 | new webpack.DefinePlugin({
23 | 'process.env': require('../config/test.env')
24 | })
25 | ]
26 | })
27 |
28 | // no need for app entry during tests
29 | delete webpackConfig.entry
30 |
31 | module.exports = webpackConfig
32 |
--------------------------------------------------------------------------------
/config/dev.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var prodEnv = require('./prod.env')
3 |
4 | module.exports = merge(prodEnv, {
5 | NODE_ENV: '"development"'
6 | })
7 |
--------------------------------------------------------------------------------
/config/index.js:
--------------------------------------------------------------------------------
1 | // see http://vuejs-templates.github.io/webpack for documentation.
2 | var path = require('path')
3 |
4 | module.exports = {
5 | build: {
6 | env: require('./prod.env'),
7 | index: path.resolve(__dirname, '../docs/index.html'),
8 | assetsRoot: path.resolve(__dirname, '../docs'),
9 | assetsSubDirectory: 'static',
10 | assetsPublicPath: '/X-WebDesktop-Vue/',
11 | productionSourceMap: false,
12 | // Gzip off by default as many popular static hosts such as
13 | // Surge or Netlify already gzip all static assets for you.
14 | // Before setting to `true`, make sure to:
15 | // npm install --save-dev compression-webpack-plugin
16 | productionGzip: false,
17 | productionGzipExtensions: ['js', 'css'],
18 | // Run the build command with an extra argument to
19 | // View the bundle analyzer report after build finishes:
20 | // `npm run build --report`
21 | // Set to `true` or `false` to always turn it on or off
22 | bundleAnalyzerReport: process.env.npm_config_report
23 | },
24 | dev: {
25 | env: require('./dev.env'),
26 | port: 8899,
27 | autoOpenBrowser: true,
28 | assetsSubDirectory: 'static',
29 | assetsPublicPath: '/',
30 | proxyTable: {},
31 | // CSS Sourcemaps off by default because relative paths are "buggy"
32 | // with this option, according to the CSS-Loader README
33 | // (https://github.com/webpack/css-loader#sourcemaps)
34 | // In our experience, they generally work as expected,
35 | // just be aware of this issue when enabling this option.
36 | cssSourceMap: false
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/config/prod.env.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | NODE_ENV: '"production"'
3 | }
4 |
--------------------------------------------------------------------------------
/config/test.env.js:
--------------------------------------------------------------------------------
1 | var merge = require('webpack-merge')
2 | var devEnv = require('./dev.env')
3 |
4 | module.exports = merge(devEnv, {
5 | NODE_ENV: '"testing"'
6 | })
7 |
--------------------------------------------------------------------------------
/docs/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/.gitkeep
--------------------------------------------------------------------------------
/docs/index.html:
--------------------------------------------------------------------------------
1 |
X-WebDesktop-Vue
--------------------------------------------------------------------------------
/docs/static/X-Logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/static/app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/app.png
--------------------------------------------------------------------------------
/docs/static/apps/AccountManagement/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/AccountManagement/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/AmapDitu/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/AmapDitu/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/ApplicationMarket/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/ApplicationMarket/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/BaiduFanyi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/BaiduFanyi/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/BaiduMap/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/BaiduMap/logo.jpg
--------------------------------------------------------------------------------
/docs/static/apps/Blog/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/Blog/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/GoFire/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/GoFire/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/GoogleTranslate/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/GoogleTranslate/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/PersonalCenter/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/PersonalCenter/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/Photoshop/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/Photoshop/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/SystemLog/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/SystemLog/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/Weather/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/Weather/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/Weixin/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/Weixin/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/XBoard/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/XBoard/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/XPlayer/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/XPlayer/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/iChat/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/iChat/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/iClock/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/iClock/logo.png
--------------------------------------------------------------------------------
/docs/static/apps/iImage/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/apps/iImage/logo.png
--------------------------------------------------------------------------------
/docs/static/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/favicon.png
--------------------------------------------------------------------------------
/docs/static/fonts/ionicons.05acfdb.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/fonts/ionicons.05acfdb.woff
--------------------------------------------------------------------------------
/docs/static/fonts/ionicons.24712f6.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/fonts/ionicons.24712f6.ttf
--------------------------------------------------------------------------------
/docs/static/fonts/ionicons.2c2ae06.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/fonts/ionicons.2c2ae06.eot
--------------------------------------------------------------------------------
/docs/static/js/manifest.ba6dc96e063d7ff69040.js:
--------------------------------------------------------------------------------
1 | !function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,u){for(var a,i,f,s=0,l=[];s
2 |
3 |
4 |
5 | Win7 Welcome
6 |
47 |
48 |
49 |
50 |
51 |
52 |

Welcome
53 |
54 |
55 |

56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/docs/static/win7/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/win7/logo.png
--------------------------------------------------------------------------------
/docs/static/win7/wallpaper.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/docs/static/win7/wallpaper.jpg
--------------------------------------------------------------------------------
/document/.nojekyll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/.nojekyll
--------------------------------------------------------------------------------
/document/RegEdit.md:
--------------------------------------------------------------------------------
1 | ## Windows 注册表
2 |
3 | 提示:相信大家对Windows中的关联一定不会陌生,我们在资源管理器中双击系统中的某个文件时,系统会自动打开一个程序并会打开它。如双击一个Word文件则会自动调用Microsoft Word,而双击BMP则会自动调用画图程序等等,这就是关联。而大家所不知道的是,其实当我们双击一文件后,Windows会首先在该主键下查找该类文件的扩展名,然后以此扩展名子键中的文件类型信息为基础,再查找该类文件相对应的应用程序信息,最后使用相应的程序来打开我们双击的文件。如我们可以单击“开始”→“程序”→“运行”命令,然后输入“regedit”来启动系统注册表,并单击HKEY_CLASSES_ROOT主键,找到“.bmp”子键(如图2),我们会发现其记录其默认值为“Microsoft Word文档e”,而它的shell-open-command子键则记录的command子键的默认值“C:/WINDOWS/SYSTEM32/MSPAINT.EXE %1”,则表示它是调用C:/WINDOWS/SYSTEM32/MSPAINT.EXE程序来打开我们双击的BMP文件的。
4 |
--------------------------------------------------------------------------------
/document/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | X-WebDesktop-Vue - The WebDesktop system based on Vue
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/document/screenshot/2020-01-01 09 58 47.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/2020-01-01 09 58 47.png
--------------------------------------------------------------------------------
/document/screenshot/2020-01-01 09 58 49 (2).png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/2020-01-01 09 58 49 (2).png
--------------------------------------------------------------------------------
/document/screenshot/2020-01-01 09 58 49.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/2020-01-01 09 58 49.png
--------------------------------------------------------------------------------
/document/screenshot/2020-01-01 09 58 50.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/2020-01-01 09 58 50.png
--------------------------------------------------------------------------------
/document/screenshot/preview_mobile_admin_landscape_001.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_mobile_admin_landscape_001.jpg
--------------------------------------------------------------------------------
/document/screenshot/preview_mobile_admin_landscape_002.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_mobile_admin_landscape_002.jpg
--------------------------------------------------------------------------------
/document/screenshot/preview_mobile_admin_portrait_001.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_mobile_admin_portrait_001.jpg
--------------------------------------------------------------------------------
/document/screenshot/preview_mobile_admin_portrait_002.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_mobile_admin_portrait_002.jpg
--------------------------------------------------------------------------------
/document/screenshot/preview_mobile_admin_portrait_003.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_mobile_admin_portrait_003.jpg
--------------------------------------------------------------------------------
/document/screenshot/preview_mobile_admin_portrait_004.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_mobile_admin_portrait_004.jpg
--------------------------------------------------------------------------------
/document/screenshot/preview_mobile_home_portrait_001.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_mobile_home_portrait_001.jpg
--------------------------------------------------------------------------------
/document/screenshot/preview_mobile_home_portrait_002.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_mobile_home_portrait_002.jpg
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_admin.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_admin.gif
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_admin_001.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_admin_001.png
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_admin_002.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_admin_002.png
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_admin_003.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_admin_003.png
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_admin_004.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_admin_004.png
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_admin_0913.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_admin_0913.png
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_custom_window.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_custom_window.png
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_drag_resize.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_drag_resize.gif
--------------------------------------------------------------------------------
/document/screenshot/preview_pc_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/document/screenshot/preview_pc_home.png
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | X-WebDesktop-Vue
11 |
12 |
13 |
14 |
15 |
16 |

21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/App.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | */
5 |
6 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
43 |
--------------------------------------------------------------------------------
/src/apps/AccountManagement/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/7/3.
3 | *
4 | */
5 |
6 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
42 |
43 |
--------------------------------------------------------------------------------
/src/apps/AccountManagement/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/7/14.
3 | */
4 |
5 | import Vue from 'vue'
6 |
7 | export default {
8 | // 获取账号列表
9 | getAccountList: async (data) => {
10 | let res = await Vue.prototype.$http.get('/AccountManagement/account/list', {
11 | params: data
12 | })
13 | return res
14 | },
15 | // 添加账号
16 | doAddAccount: async (data) => {
17 | let res = await Vue.prototype.$http.post('/AccountManagement/account/add', data)
18 | return res
19 | },
20 | // 删除账号
21 | doRemoveAccount: async (data) => {
22 | let res = await Vue.prototype.$http.post('/AccountManagement/account/remove', data)
23 | return res
24 | },
25 | // 编辑账号
26 | doEditAccount: async (data) => {
27 | let res = await Vue.prototype.$http.post('/AccountManagement/account/edit', data)
28 | return res
29 | },
30 | // 获取所有的应用
31 | getAllApps: async (data) => {
32 | let res = await Vue.prototype.$http.get('/AccountManagement/Apps/all', {
33 | params: data
34 | })
35 | return res
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/src/apps/AccountManagement/pages/MainPage.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/7/5.
3 | * 账号管理 主内容组件
4 | */
5 |
6 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
76 |
77 |
--------------------------------------------------------------------------------
/src/apps/AccountManagement/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/7/14.
3 | */
4 |
5 | // 导入api
6 | import Api from '../api'
7 |
8 | export default {
9 | // 获取账号列表
10 | 'account/list': async ({ commit }, payload) => {
11 | // 调接口
12 | let res = await Api.getAccountList(payload)
13 | return res
14 | },
15 | // 添加账号
16 | 'account/add': async ({ commit }, payload) => {
17 | // 调接口
18 | let res = await Api.doAddAccount(payload)
19 | return res
20 | },
21 | // 删除账号
22 | 'account/remove': async ({ commit }, payload) => {
23 | // 调接口
24 | let res = await Api.doRemoveAccount(payload)
25 | return res
26 | },
27 | // 编辑账号
28 | 'account/edit': async ({ commit }, payload) => {
29 | // 调接口
30 | let res = await Api.doEditAccount(payload)
31 | return res
32 | },
33 | // 获取所有的app
34 | 'Apps/all': async ({ commit }, payload) => {
35 | // 调接口
36 | let res = await Api.getAllApps(payload)
37 | return res
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/apps/AccountManagement/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/7/14.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'AccountManagement',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/AccountManagement/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/7/14.
3 | */
4 |
5 | export default {
6 | // 更新当前激活的tab
7 | 'currentTab/update': (state, data) => {
8 | state.currentTab = data
9 | },
10 | // 更新当前编辑的账号
11 | 'currentEditAccount/update': (state, data) => {
12 | state.currentEditAccount = data
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/apps/AccountManagement/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/7/14.
3 | */
4 |
5 | export default {
6 | // 当前激活的tab
7 | currentTab: '',
8 | // 当前编辑的账号
9 | currentEditAccount: {}
10 | }
11 |
--------------------------------------------------------------------------------
/src/apps/ApplicationMarket/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | *
4 | */
5 |
6 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
42 |
43 |
--------------------------------------------------------------------------------
/src/apps/ApplicationMarket/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import Vue from 'vue'
6 |
7 | export default {
8 | // 获取应用分类列表
9 | getCategoryList: async (data) => {
10 | let res = await Vue.prototype.$http.get('/ApplicationMarket/category/list', {
11 | params: data
12 | })
13 | return res
14 | },
15 | // 获取应用列表
16 | getApplicationList: async (data) => {
17 | let res = await Vue.prototype.$http.get('/ApplicationMarket/application/list', {
18 | params: data
19 | })
20 | return res
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/src/apps/ApplicationMarket/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | import Api from '../api'
7 |
8 | export default {
9 | // 获取应用分类列表
10 | 'category/list': async ({ commit }, payload) => {
11 | // 调接口
12 | let res = await Api.getCategoryList(payload)
13 | return res
14 | },
15 | // 获取应用列表
16 | 'application/list': async ({ commit }, payload) => {
17 | // 调接口
18 | let res = await Api.getApplicationList(payload)
19 | return res
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/src/apps/ApplicationMarket/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'ApplicationMarket',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/ApplicationMarket/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/ApplicationMarket/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
43 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | import Http from 'vue-resource/src/http'
8 |
9 | export default {
10 | doTranslate: async (data) => {
11 | let res = await Http.jsonp('//api.fanyi.baidu.com/api/trans/vip/translate', {
12 | params: data
13 | })
14 | return res
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/install/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/24.
3 | *
4 | * 自定义安装界面
5 | */
6 |
7 |
62 |
63 |
64 |
65 |
68 |
69 |
70 |
![]()
71 |
72 |
73 |
74 |
75 | 安装中...
76 |
77 |
78 |
{{ isSuccess ? '安装成功!' : '安装失败!' }}
79 |
80 |
81 |
82 |
83 |
84 |
122 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/md-swap.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | import Api from '../api'
7 |
8 | export default {
9 | 'translate': async ({ commit }, payload) => {
10 | // 调接口
11 | let res = await Api.doTranslate(payload)
12 | return res
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'BaiduFanyi',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/BaiduFanyi/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
48 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/install/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/24.
3 | *
4 | * 自定义安装界面
5 | */
6 |
7 |
62 |
63 |
64 |
65 |
68 |
69 |
70 |
![]()
71 |
72 |
73 |
74 |
75 | 安装中...
76 |
77 |
78 |
{{ isSuccess ? '安装成功!' : '安装失败!' }}
79 |
80 |
81 |
82 |
83 |
84 |
122 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/pages/MainPage.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/8/24.
3 | *
4 | */
5 |
6 |
13 |
14 |
15 |
16 |
TODO DemoApp MainPage
17 |
18 |
19 |
20 |
30 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'DemoApp',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/DemoApp/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/GoFire/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
48 |
--------------------------------------------------------------------------------
/src/apps/GoFire/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/GoFire/components/ContentPage.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/9/7.
3 | *
4 | */
5 |
6 |
21 |
22 |
23 |
24 |
39 |
40 |
41 |
42 |
98 |
--------------------------------------------------------------------------------
/src/apps/GoFire/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/GoFire/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/GoFire/install/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/24.
3 | *
4 | * 自定义安装界面
5 | */
6 |
7 |
62 |
63 |
64 |
65 |
68 |
69 |
70 |
![]()
71 |
72 |
73 |
74 |
75 | 安装中...
76 |
77 |
78 |
{{ isSuccess ? '安装成功!' : '安装失败!' }}
79 |
80 |
81 |
82 |
83 |
84 |
122 |
--------------------------------------------------------------------------------
/src/apps/GoFire/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/GoFire/pages/MainPage.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/8/24.
3 | *
4 | */
5 |
6 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
40 |
--------------------------------------------------------------------------------
/src/apps/GoFire/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/GoFire/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'GoFire',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/GoFire/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {
6 | // 激活tab
7 | 'tab/active': (state, data) => {
8 | state.currentTabIndex = data + ''
9 | },
10 | // 关闭tab
11 | 'tab/close': (state, data) => {
12 | let tabPageMap = {
13 | ...state.tabPageMap
14 | }
15 | let targetIndex = Object.keys(tabPageMap).indexOf(data)
16 | if (targetIndex > -1) {
17 | if (Object.keys(tabPageMap).length > 1) {
18 | if (targetIndex === 0) {
19 | state.currentTabIndex = Object.keys(tabPageMap)[targetIndex + 1] + ''
20 | } else {
21 | state.currentTabIndex = Object.keys(tabPageMap)[targetIndex - 1] + ''
22 | }
23 | }
24 | // 执行删除操作
25 | delete tabPageMap[data]
26 | if (!Object.keys(tabPageMap).length) {
27 | let tabIndex = '0'
28 | tabPageMap[tabIndex] = JSON.parse(JSON.stringify(state.newTab))
29 | state.currentTabIndex = tabIndex
30 | }
31 | state.tabPageMap = {
32 | ...tabPageMap
33 | }
34 | }
35 | },
36 | 'tab/add': (state, data) => {
37 | let tabPageMap = {
38 | ...state.tabPageMap
39 | }
40 | let tabIndex = parseInt(Object.keys(tabPageMap)[Object.keys(tabPageMap).length - 1 > 0 ? Object.keys(tabPageMap).length - 1 : 0]) + 1 + ''
41 | tabPageMap[tabIndex] = JSON.parse(JSON.stringify(state.newTab))
42 | state.tabPageMap = {
43 | ...tabPageMap
44 | }
45 | state.currentTabIndex = tabIndex
46 | },
47 | 'tab/update': (state, data) => {
48 | state.tabPageMap[data.index] = data.info
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/apps/GoFire/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {
6 | // 标签页列表
7 | tabPageMap: {
8 | '0': {
9 | name: 'home',
10 | title: 'X-WebDesktop-Vue',
11 | url: 'http://oxoyo.co/X-WebDesktop-Vue/',
12 | index: 0
13 | }
14 | },
15 | currentTabIndex: '0',
16 | homePage: {
17 | name: 'home',
18 | title: 'X-WebDesktop-Vue',
19 | url: 'http://oxoyo.co/X-WebDesktop-Vue/',
20 | index: 0
21 | },
22 | newTab: {
23 | name: '',
24 | title: '新标签页',
25 | url: '',
26 | index: 0
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
48 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/pages/MainPage.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/23.
3 | *
4 | * 【暂弃】 由于X-Frame-Options' to 'deny',暂弃该应用
5 | */
6 |
7 |
22 |
23 |
24 |
25 |
38 |
39 |
40 |
41 |
101 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'GoogleTranslate',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/GoogleTranslate/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
TODO PersonalCenter
19 |
20 |
21 |
22 |
39 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'PersonalCenter',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/PersonalCenter/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
48 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | import Vue from 'vue'
8 |
9 | export default {
10 | getLogList: async (data) => {
11 | let res = await Vue.prototype.$http.get('/SystemLog/list', {
12 | params: data
13 | })
14 | return res
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/components/DetailLog.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/8/31.
3 | *
4 | * 日志详情
5 | */
6 |
7 |
10 |
11 |
12 |
21 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
90 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/pages/MainPage.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/8/24.
3 | *
4 | */
5 |
6 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
39 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | import Api from '../api'
7 |
8 | export default {
9 | 'list': async ({ commit }, payload) => {
10 | // 调接口
11 | let res = await Api.getLogList(payload)
12 | return res
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'SystemLog',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/SystemLog/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
TODO SystemSetting
19 |
20 |
21 |
22 |
39 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'SystemSetting',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/SystemSetting/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/Weather/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
43 |
--------------------------------------------------------------------------------
/src/apps/Weather/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/apps/Weather/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息 基本与同 platform_apps 表字段相同
5 | */
6 |
7 | export default {
8 | id: '',
9 | name: 'Weather',
10 | title: '今日天气',
11 | description: '今日天气APP',
12 | type: 0,
13 | user_type: 0,
14 | publish: 1,
15 | category: 'other',
16 | config: {
17 | app: {
18 | id: '',
19 | name: 'Weather',
20 | icon: './static/apps/Weather/logo.png',
21 | title: '今日天气',
22 | x: 0,
23 | y: 0,
24 | index: '',
25 | installed: false
26 | },
27 | desktopIcon: {
28 | style: {
29 | left: '',
30 | top: ''
31 | }
32 | },
33 | window: {
34 | size: 'custom',
35 | status: 'close',
36 | type: 'modal',
37 | enableResize: ['custom', 'small', 'min', 'max', 'middle', 'reset', 'close'],
38 | style: {
39 | width: '1000px',
40 | height: '800px',
41 | left: 'calc(50% - 500px)',
42 | top: 'calc(50% - 400px)'
43 | }
44 | },
45 | taskBar: {
46 | isPinned: true
47 | }
48 | },
49 | install: {
50 | window: {
51 | size: 'custom',
52 | status: 'close',
53 | type: 'modal',
54 | enableResize: ['custom', 'close'],
55 | style: {
56 | width: '400px',
57 | height: '300px',
58 | left: 'calc(50% - 200px)',
59 | top: 'calc(50% - 150px)'
60 | }
61 | },
62 | taskBar: {
63 | isPinned: false
64 | }
65 | },
66 | uninstall: {
67 | window: {
68 | size: 'custom',
69 | status: 'close',
70 | type: 'modal',
71 | enableResize: ['custom', 'close'],
72 | style: {
73 | width: '400px',
74 | height: '200px',
75 | left: 'calc(50% - 200px)',
76 | top: 'calc(50% - 150px)'
77 | }
78 | },
79 | taskBar: {
80 | isPinned: false
81 | }
82 | },
83 | create_time: '',
84 | update_time: ''
85 | }
86 |
--------------------------------------------------------------------------------
/src/apps/Weather/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/apps/Weather/pages/MainPage.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/23.
3 | *
4 | */
5 |
6 |
18 |
19 |
20 |
21 |
33 |
34 |
35 |
36 |
41 |
--------------------------------------------------------------------------------
/src/apps/Weather/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/Weather/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'Weather',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/Weather/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/Weather/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/Weixin/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
48 |
--------------------------------------------------------------------------------
/src/apps/Weixin/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/Weixin/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/Weixin/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/Weixin/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/Weixin/pages/MainPage.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/23.
3 | *
4 | */
5 |
6 |
21 |
22 |
23 |
24 |
36 |
37 |
38 |
39 |
99 |
--------------------------------------------------------------------------------
/src/apps/Weixin/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/Weixin/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'Weixin',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/Weixin/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/Weixin/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
43 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/components/DVideoPlayer.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/30.
3 | *
4 | * 基于DPlayer的视频播放器
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
113 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'XPlayer',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/XPlayer/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/iChat/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
48 |
--------------------------------------------------------------------------------
/src/apps/iChat/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | import Vue from 'vue'
8 |
9 | export default {
10 | doSendMessage: async (data) => {
11 | let res = await Vue.prototype.$http.post('/iChat/sendMessage', data)
12 | return res
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/apps/iChat/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/iChat/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/iChat/install/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/24.
3 | *
4 | * 自定义安装界面
5 | */
6 |
7 |
62 |
63 |
64 |
65 |
68 |
69 |
70 |
![]()
71 |
72 |
73 |
74 |
75 | 安装中...
76 |
77 |
78 |
{{ isSuccess ? '安装成功!' : '安装失败!' }}
79 |
80 |
81 |
82 |
83 |
84 |
122 |
--------------------------------------------------------------------------------
/src/apps/iChat/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/iChat/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | import Api from '../api'
7 |
8 | export default {
9 | 'sendMessage': async ({ commit }, payload) => {
10 | // 调接口
11 | let res = await Api.doSendMessage(payload)
12 | return res
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/apps/iChat/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'iChat',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/iChat/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/iChat/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/iClock/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
43 |
--------------------------------------------------------------------------------
/src/apps/iClock/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/iClock/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/iClock/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/iClock/install/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/24.
3 | *
4 | * 自定义安装界面
5 | */
6 |
7 |
62 |
63 |
64 |
65 |
68 |
69 |
70 |
![]()
71 |
72 |
73 |
74 |
75 | 安装中...
76 |
77 |
78 |
{{ isSuccess ? '安装成功!' : '安装失败!' }}
79 |
80 |
81 |
82 |
83 |
84 |
122 |
--------------------------------------------------------------------------------
/src/apps/iClock/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/iClock/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/iClock/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'iClock',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/iClock/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/iClock/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/iImage/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
48 |
--------------------------------------------------------------------------------
/src/apps/iImage/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/iImage/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/iImage/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/apps/iImage/install/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/24.
3 | *
4 | * 自定义安装界面
5 | */
6 |
7 |
62 |
63 |
64 |
65 |
68 |
69 |
70 |
![]()
71 |
72 |
73 |
74 |
75 | 安装中...
76 |
77 |
78 |
{{ isSuccess ? '安装成功!' : '安装失败!' }}
79 |
80 |
81 |
82 |
83 |
84 |
122 |
--------------------------------------------------------------------------------
/src/apps/iImage/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/apps/iImage/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | // 导入api
6 | // import Api from '../api'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/apps/iImage/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | // 导出module名称,用于动态注入store
10 | export default {
11 | moduleName: 'iImage',
12 | store: {
13 | namespaced: true,
14 | state,
15 | actions,
16 | mutations
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/apps/iImage/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/apps/iImage/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/20.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | */
5 |
6 | // 服务配置
7 | export const Serv = {
8 | development: '//localhost:3000/api/v3.0.1',
9 | // production: '//x-webdesktop-api-koa.herokuapp.com/api/v2.0.0'
10 | production: '//api.oxoyo.co/x-webdesktop-api/v3.0.1'
11 | }
12 |
13 | // cookie相关配置
14 | export const Cookie = {
15 | prefix: 'x-',
16 | keys: {
17 | account: 'account',
18 | token: 'key',
19 | userType: 'user-type',
20 | userCode: 'user-code'
21 | },
22 | getItem: function (key) {
23 | return key ? this.prefix + this.keys[key] : ''
24 | },
25 | path: {
26 | development: '/',
27 | production: '/X-WebDesktop-Vue'
28 | }
29 | }
30 |
31 | // 系统配置
32 | export const System = {
33 | author: 'OXOYO',
34 | repository: {
35 | type: 'github',
36 | url: 'https://github.com/OXOYO/X-WebDesktop-Vue'
37 | },
38 | version: '3.0.1',
39 | name: 'X-WebDesktop-Vue',
40 | title: 'X-WebDesktop-Vue',
41 | subtitle: 'X-WebDesktop-Vue',
42 | logo: './static/logo.png',
43 | copyright: '© 2017 - 2018 OXOYO'
44 | }
45 |
--------------------------------------------------------------------------------
/src/global/components/Error404.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/8.
3 | *
4 | */
5 |
6 |
88 |
89 |
90 |
91 |
94 |
该页面不存在(´・ω・`)
95 |
96 |
99 |
100 |
101 |
102 |
103 |
108 |
109 |
--------------------------------------------------------------------------------
/src/global/components/NoData.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/7/14.
3 | * 暂无数据组件
4 | */
5 |
6 |
13 |
14 |
15 |
16 | {{ text }}
17 |
18 |
19 |
20 |
35 |
36 |
--------------------------------------------------------------------------------
/src/global/components/RainDay.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/9/26.
3 | *
4 | * 雨滴背景
5 | */
6 |
7 |
19 |
20 |
21 |
22 |
![]()
23 |
24 |
25 |
26 |
93 |
94 |
--------------------------------------------------------------------------------
/src/global/components/Switch.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/5/18.
3 | *
4 | */
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
98 |
--------------------------------------------------------------------------------
/src/global/components/WallpaperBackground.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/5/10.
3 | *
4 | * 磨砂壁纸背景
5 | */
6 |
7 |
21 |
22 |
23 |
27 |
28 |
29 |
30 |
42 |
--------------------------------------------------------------------------------
/src/global/components/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import NoData from './NoData.vue'
6 | import RainDay from './RainDay.vue'
7 | import USwitch from './Switch.vue'
8 | import UPanel from './UPanel.vue'
9 | import HighLight from './HighLight.vue'
10 | import WallpaperBackground from './WallpaperBackground.vue'
11 |
12 | export default {
13 | components: {
14 | NoData,
15 | RainDay,
16 | USwitch,
17 | UPanel,
18 | HighLight,
19 | WallpaperBackground
20 | },
21 | // 注册全局组件
22 | register: function (Vue) {
23 | let _t = this
24 | let components = _t.components
25 | for (let key in components) {
26 | if (key && components[key]) {
27 | Vue.component(key, components[key])
28 | }
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/global/plugin/Window/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/23.
3 | *
4 | * 窗口插件 【废弃】
5 | */
6 |
7 | import Vue from 'vue'
8 | import Window from '../../../platform/apps/Window/Index.vue'
9 |
10 | Window.open = function (ctx, options) {
11 | let _t = ctx
12 | let Constructor = Vue.extend(Window)
13 | console.log('Window.open', options)
14 | let component = new Constructor({
15 | store: _t.$store,
16 | propsData: {
17 | info: options
18 | }
19 | })
20 | component.$mount()
21 | document.querySelector('.app-desktop-box').appendChild(component.$el)
22 | }
23 |
24 | export default Window
25 |
--------------------------------------------------------------------------------
/src/global/plugin/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/23.
3 | *
4 | */
5 |
6 | import Window from './Window'
7 |
8 | export default {
9 | Window
10 | }
11 |
--------------------------------------------------------------------------------
/src/global/utils/DisableDebugger.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/11/9.
3 | *
4 | * 禁用调试工具
5 | */
6 |
7 | const closeWindow = (loop) => {
8 | clearInterval(loop)
9 | // 关闭当前窗口
10 | window.close()
11 | // 将当前窗口跳转置空白页
12 | window.location = 'about:blank'
13 | console.clear()
14 | }
15 |
16 | export default {
17 | init: function () {
18 | window.onkeydown = window.onkeyup = window.onkeypress = function (event) {
19 | // 判断是否按下F12,F12键码为123
20 | if (event.keyCode === 123) {
21 | event.preventDefault()
22 | window.event.returnValue = false
23 | }
24 | }
25 | // 为右键添加自定义事件
26 | window.oncontextmenu = function (event) {
27 | event.preventDefault()
28 | return false
29 | }
30 | // 打开控制台的宽或高阈值
31 | let threshold = 160
32 | let div = document.createElement('div')
33 | Object.defineProperty(div, 'id', {
34 | get: () => {
35 | closeWindow(loop)
36 | }
37 | })
38 | // 循环检测
39 | let loop = setInterval(function () {
40 | let startTime = performance.now()
41 | if (
42 | // 方式一:检测console相关对象
43 | (window.console && (console.firebug || console.table && /firebug/i.test(console.table()))) ||
44 | (typeof opera === 'object' && typeof opera.postError === 'function' && console.profile.length > 0) ||
45 | (typeof console.profiles === 'object' && console.profiles.length > 0) ||
46 | // 方式二:检测窗口宽高
47 | (window.outerWidth - window.innerWidth > threshold) ||
48 | (window.outerHeight - window.innerHeight > threshold)
49 | ) {
50 | closeWindow(loop)
51 | }
52 | // 方式三:复写div.id的getter方法,控制台打开时打印div会调用其div.id的get方法
53 | console.log(div)
54 | console.clear()
55 | // 方式四:复写toString方法,控制台打开时打印devtools会调用其toString方法
56 | let devtools = /./
57 | devtools.toString = function () {
58 | this.opened = true
59 | closeWindow(loop)
60 | }
61 | console.log('%c', devtools)
62 | console.clear()
63 | // 方式五:检测代码耗时,devtool下代码运行速度降低
64 | for (let i = 0; i < 1000; i++) {
65 | console.log(i)
66 | console.clear()
67 | }
68 | let diff = performance.now() - startTime
69 | if (diff > 200) {
70 | closeWindow(loop)
71 | }
72 | }, 1000)
73 | }
74 | }
75 |
--------------------------------------------------------------------------------
/src/global/utils/bus.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import Vue from 'vue'
6 |
7 | const bus = new Vue()
8 |
9 | // 清除监听事件
10 | bus.$clear = function (types = []) {
11 | let _t = this
12 | if (types) {
13 | if (typeof types === 'string') {
14 | types = [types]
15 | }
16 | if (types instanceof Array) {
17 | for (let type of types) {
18 | _t.$off(type)
19 | }
20 | }
21 | }
22 | }
23 | // 注册监听事件
24 | bus.$register = function (type, callback, _t, field) {
25 | if (_t) {
26 | let types = field || 'types'
27 | if (!_t[types]) {
28 | _t[types] = {}
29 | }
30 | _t[types][type] = true
31 | }
32 | bus.$on(type, callback)
33 | }
34 |
35 | export default bus
36 |
--------------------------------------------------------------------------------
/src/global/utils/filters.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {
6 | // 日期格式化
7 | formatDate: (time, fmt = 'yyyy-MM-dd hh:mm') => {
8 | // console.log('time', time, typeof time)
9 | if (time instanceof Date) {
10 | time = new Date(time).getTime()
11 | }
12 | let timeStr = time + ''
13 | // 10位时间戳格式化
14 | if (timeStr.length < 13) {
15 | time = time * (Math.pow(10, 13 - timeStr.length))
16 | }
17 | time = parseInt(time)
18 | if (isNaN(time)) {
19 | return ''
20 | }
21 | let date = new Date(time)
22 | let padLeftZero = (str) => {
23 | return ('00' + str).substr(str.length)
24 | }
25 | let doFormatDate = (date, fmt) => {
26 | if (/(y+)/.test(fmt)) {
27 | fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
28 | }
29 | let obj = {
30 | 'M+': date.getMonth() + 1,
31 | 'd+': date.getDate(),
32 | 'h+': date.getHours(),
33 | 'm+': date.getMinutes(),
34 | 's+': date.getSeconds()
35 | }
36 | for (let k in obj) {
37 | if (new RegExp(`(${k})`).test(fmt)) {
38 | let str = obj[k] + ''
39 | fmt = fmt.replace(RegExp.$1, RegExp.$1.length === 1 ? str : padLeftZero(str))
40 | }
41 | }
42 | return fmt
43 | }
44 |
45 | return doFormatDate(date, fmt)
46 | },
47 | // 千分位格式化
48 | formatThousands: function (num) {
49 | num = (num || 0).toString()
50 | let result = ''
51 | while (num.length > 3) {
52 | result = ',' + num.slice(-3) + result
53 | num = num.slice(0, num.length - 3)
54 | }
55 | if (num) {
56 | result = num + result
57 | }
58 | return result
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/global/utils/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import bus from './bus'
6 | import filters from './filters'
7 | import store from './store'
8 | import timeConsuming from './timeConsuming'
9 | import install from './install'
10 | import uninstall from './uninstall'
11 | import DisableDebugger from './DisableDebugger'
12 |
13 | export default {
14 | bus,
15 | filters,
16 | store,
17 | // 耗时
18 | timeConsuming,
19 | install,
20 | uninstall,
21 | DisableDebugger
22 | }
23 |
--------------------------------------------------------------------------------
/src/global/utils/install.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/24.
3 | *
4 | * 应用安装工具
5 | */
6 |
7 | export default function (ctx, appInfo) {
8 | let _t = ctx
9 | // 广播事件 打开安装界面
10 | _t.$utils.bus.$emit('platform/application/install', {
11 | action: 'openByInstall',
12 | data: {
13 | appInfo: JSON.parse(JSON.stringify(appInfo))
14 | }
15 | })
16 | }
17 |
--------------------------------------------------------------------------------
/src/global/utils/store.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/6.
3 | */
4 |
5 | import platformStore from '../../store/platform'
6 | import appsStore from '../../store/apps'
7 |
8 | export default {
9 | getType: function (path, key) {
10 | let flag = path.indexOf('/') === 0
11 | if (!key) {
12 | return flag ? path.slice(1, path.length) : path
13 | }
14 | let moduleName = ''
15 | switch (key) {
16 | case 'Platform':
17 | moduleName = platformStore.moduleName
18 | break
19 | case 'Apps':
20 | moduleName = appsStore.moduleName
21 | }
22 | if (moduleName) {
23 | // 判断路径开头是否包含 /
24 | return flag ? moduleName + path : moduleName + '/' + path
25 | }
26 | return flag ? path.slice(1, path.length) : path
27 | },
28 | getModuleName: function (key) {
29 | let moduleName = ''
30 | switch (key) {
31 | case 'Platform':
32 | moduleName = platformStore.moduleName
33 | break
34 | case 'Apps':
35 | moduleName = appsStore.moduleName
36 | }
37 | return moduleName
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/global/utils/timeConsuming.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/1/24.
3 | *
4 | * 运行耗时统计
5 | */
6 |
7 | export default {
8 | map: {},
9 | condition: {
10 | small: 10,
11 | middle: 50,
12 | large: 100
13 | },
14 | style: {
15 | small: 'color: #19be6b',
16 | middle: 'color: #ffad33',
17 | large: 'color: #f16543'
18 | },
19 | start: function (key) {
20 | let _t = this
21 | if (!_t.map[key]) {
22 | _t.map[key] = {
23 | start: new Date(),
24 | end: new Date(),
25 | sum: 0
26 | }
27 | } else {
28 | console.warn('TIME CONSUMING::', 'Repeated key:', key)
29 | }
30 | },
31 | end: function (key) {
32 | let _t = this
33 | if (!_t.map[key]) {
34 | console.warn('TIME CONSUMING::', 'Not existed key:', key)
35 | return
36 | }
37 | _t.map[key]['end'] = new Date()
38 | _t.map[key]['sum'] = _t.map[key]['end'] - _t.map[key]['start']
39 | let tmpArr = Object.keys(_t.condition)
40 | let tmpKey = tmpArr.find(condition => _t.map[key]['sum'] < _t.condition[condition])
41 | if (!tmpKey) {
42 | tmpKey = _t.condition[tmpArr[tmpArr.length - 1]]
43 | }
44 | let msg = [
45 | '%cTIME CONSUMING::',
46 | _t.map[key]['sum'],
47 | 'key:',
48 | key,
49 | 'condition:',
50 | _t.condition[tmpKey]
51 | ].join(' ')
52 | let style = _t.style[tmpKey]
53 | console.log(msg, style)
54 | }
55 | }
56 |
57 |
--------------------------------------------------------------------------------
/src/global/utils/uninstall.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/4/24.
3 | *
4 | * 应用卸载工具
5 | */
6 |
7 | export default function (ctx, appInfo) {
8 | let _t = ctx
9 | console.log('utils.uninstall appData', appInfo)
10 | // 广播事件 打开卸载界面
11 | _t.$utils.bus.$emit('platform/application/uninstall', {
12 | action: 'openByUninstall',
13 | data: {
14 | appInfo: JSON.parse(JSON.stringify(appInfo))
15 | }
16 | })
17 | }
18 |
--------------------------------------------------------------------------------
/src/platform/apps/Admin/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | import Vue from 'vue'
8 |
9 | export default {
10 | user: {
11 | // 获取用户基本信息
12 | getBaseInfo: async (data) => {
13 | let res = await Vue.prototype.$http.get('/Platform/user/BaseInfo')
14 | return res
15 | },
16 | // 获取用户应用列表
17 | getApplicationListByUserId: async (data) => {
18 | let res = await Vue.prototype.$http.get('/Platform/user/application/list', {
19 | params: data
20 | })
21 | return res
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/platform/apps/Admin/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'Admin'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/Admin/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/Admin/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Admin/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import Api from '../api'
6 |
7 | export default {
8 | // 获取bing壁纸
9 | 'user/BaseInfo': async ({ commit }, payload) => {
10 | let res = await Api.user.getBaseInfo(payload)
11 | return res
12 | },
13 | // 获取应用列表
14 | 'user/application/list': async ({ commit }, payload) => {
15 | let res = await Api.user.getApplicationListByUserId(payload)
16 | return res
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/platform/apps/Admin/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | export default {
10 | moduleName: 'Admin',
11 | store: {
12 | namespaced: true,
13 | state,
14 | actions,
15 | mutations
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/platform/apps/Admin/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {
6 | 'appData/set': (state, data) => {
7 | state.appData = JSON.parse(JSON.stringify(data))
8 | },
9 | 'appData/backup': (state, data) => {
10 | state._appData = JSON.parse(JSON.stringify(data))
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/src/platform/apps/Admin/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {
6 | appData: {
7 | list: [],
8 | iconList: [],
9 | showTitle: true
10 | },
11 | _appData: {
12 | list: [],
13 | iconList: [],
14 | showTitle: true
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/platform/apps/ContextMenu/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | */
5 |
6 | export default {
7 |
8 | }
9 |
--------------------------------------------------------------------------------
/src/platform/apps/ContextMenu/components/ContextMenuItem.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2018/1/12.
3 | *
4 | */
5 |
6 |
9 |
10 |
11 |
36 |
37 |
38 |
72 |
73 |
--------------------------------------------------------------------------------
/src/platform/apps/ContextMenu/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | */
5 |
6 | export default {
7 | type: 'system',
8 | name: 'ContextMenu'
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/ContextMenu/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Desktop/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | */
5 |
6 | import Vue from 'vue'
7 |
8 | export default {
9 | doInstall: async (data) => {
10 | let res = await Vue.prototype.$http.post('/Platform/user/application/install', data)
11 | return res
12 | },
13 | doUninstall: async (data) => {
14 | let res = await Vue.prototype.$http.post('/Platform/user/application/uninstall', data)
15 | return res
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/platform/apps/Desktop/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | */
5 |
6 | export default {
7 | type: 'system',
8 | name: 'Desktop'
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Desktop/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Desktop refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/Desktop/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Desktop/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import Api from '../api'
6 |
7 | export default {
8 | // 执行应用安装
9 | 'application/install': async ({ commit }, payload) => {
10 | let res = await Api.doInstall(payload)
11 | return res
12 | },
13 | // 执行应用卸载
14 | 'application/uninstall': async ({ commit }, payload) => {
15 | let res = await Api.doUninstall(payload)
16 | return res
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/platform/apps/Desktop/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | export default {
10 | moduleName: 'Desktop',
11 | store: {
12 | namespaced: true,
13 | state,
14 | actions,
15 | mutations
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/platform/apps/Desktop/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {
6 | // 更新当前的壁纸信息
7 | 'currentWallpaper/update': (state, data) => {
8 | state.currentWallpaper = data
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/Desktop/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/platform/apps/DesktopIcon/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'DesktopIcon'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/DesktopIcon/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default []
8 |
--------------------------------------------------------------------------------
/src/platform/apps/DesktopWidget/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
10 |
11 |
12 | TODO DesktopWidget
13 |
14 |
15 |
20 |
--------------------------------------------------------------------------------
/src/platform/apps/DesktopWidget/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/DesktopWidget/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'DesktopWidget'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/DesktopWidget/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/DesktopWidget/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Home/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
17 |
18 |
19 |
24 |
25 |
26 |
27 |
28 |
29 |
99 |
--------------------------------------------------------------------------------
/src/platform/apps/Home/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Home/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'Home'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/Home/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/Home/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Login/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | import Vue from 'vue'
8 |
9 | export default {
10 | // 执行登录
11 | doSignIn: async (data) => {
12 | let res = await Vue.prototype.$http.post('/Platform/user/signIn', data)
13 | return res
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/src/platform/apps/Login/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'Login'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/Login/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/Login/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Login/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import Api from '../api'
6 |
7 | export default {
8 | // 登录
9 | 'doSignIn': async ({ commit }, payload) => {
10 | // 调接口
11 | let res = await Api.doSignIn(payload)
12 | return res
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/platform/apps/Login/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | export default {
10 | moduleName: 'Login',
11 | store: {
12 | namespaced: true,
13 | state,
14 | actions,
15 | mutations
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/platform/apps/Login/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/platform/apps/Login/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/platform/apps/SplitScreen/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 | // import Vue from 'vue'
7 |
8 | export default {}
9 |
--------------------------------------------------------------------------------
/src/platform/apps/SplitScreen/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'SplitScreen'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/SplitScreen/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/SplitScreen/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/SplitScreen/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | // import Api from '../api'
6 |
7 | export default {}
8 |
--------------------------------------------------------------------------------
/src/platform/apps/SplitScreen/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | export default {
10 | moduleName: 'SplitScreen',
11 | store: {
12 | namespaced: true,
13 | state,
14 | actions,
15 | mutations
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/platform/apps/SplitScreen/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/platform/apps/SplitScreen/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/platform/apps/StartMenu/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/StartMenu/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'StartMenu'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/StartMenu/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/StartMenu/images/StartMenu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/src/platform/apps/StartMenu/images/StartMenu.png
--------------------------------------------------------------------------------
/src/platform/apps/StartMenu/images/StartMenu_old.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/src/platform/apps/StartMenu/images/StartMenu_old.png
--------------------------------------------------------------------------------
/src/platform/apps/StartMenu/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBar/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
85 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBar/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBar/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'TaskBar'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBar/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBar/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarIconBox/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
20 |
21 |
22 |
23 |
29 |
30 |
31 |
32 |
48 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarIconBox/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarIconBox/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'TaskBarIcon'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarIconBox/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarIconBox/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarWidget/Index.vue:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 入口文件
5 | */
6 |
7 |
10 |
11 |
12 | TODO TaskBarWidget
13 |
14 |
15 |
20 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarWidget/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarWidget/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'TaskBarWidget'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarWidget/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/TaskBarWidget/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Wallpaper/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 | import Vue from 'vue'
7 |
8 | export default {
9 | // 获取bing壁纸
10 | getBingWallpaper: async (data) => {
11 | let res = await Vue.prototype.$http.get('/Platform/components/wallpaper/bing', {
12 | params: data
13 | })
14 | return res
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/platform/apps/Wallpaper/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'TaskBar'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/Wallpaper/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/Wallpaper/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Wallpaper/store/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import Api from '../api'
6 |
7 | export default {
8 | // 获取bing壁纸
9 | 'bing': async ({ commit }, payload) => {
10 | let res = await Api.getBingWallpaper(payload)
11 | return res
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/platform/apps/Wallpaper/store/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | export default {
10 | moduleName: 'Wallpaper',
11 | store: {
12 | namespaced: true,
13 | state,
14 | actions,
15 | mutations
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/platform/apps/Wallpaper/store/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {
6 | // 更新当前的壁纸信息
7 | 'currentWallpaper/update': (state, data) => {
8 | state.currentWallpaper = data
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/Wallpaper/store/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {
6 | currentWallpaper: {
7 | // 类别
8 | type: '',
9 | // 资源
10 | src: '',
11 | // 样式
12 | style: {}
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/src/platform/apps/Window/api.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/platform/apps/Window/config.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 配置信息
5 | */
6 |
7 | export default {
8 | type: 'system',
9 | name: 'Window'
10 | }
11 |
--------------------------------------------------------------------------------
/src/platform/apps/Window/contextMenu.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 组件右键菜单配置信息
5 | */
6 |
7 | export default [
8 | {
9 | key: 'refresh',
10 | text: '刷新',
11 | handler: function () {
12 | console.log('Admin refresh...')
13 | }
14 | }
15 | ]
16 |
--------------------------------------------------------------------------------
/src/platform/apps/Window/openApi.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | *
4 | * 对外接口
5 | */
6 |
7 | export default {
8 |
9 | }
10 |
--------------------------------------------------------------------------------
/src/routers.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/24.
3 | * 【已废弃】系统路由表
4 | */
5 |
6 | export default [
7 | // 平台首页
8 | {
9 | path: '/',
10 | name: 'platform.index',
11 | component: resolve => require(['./platform/Index'], resolve),
12 | meta: {
13 | title: '首页',
14 | requiresAuth: false
15 | },
16 | children: [
17 | {
18 | path: 'Error404',
19 | name: 'platform.Error404',
20 | component: resolve => require(['./global/components/Error404'], resolve),
21 | meta: {
22 | title: 'Error404',
23 | requiresAuth: false,
24 | scrollToTop: true
25 | }
26 | }
27 | ]
28 | }
29 | ]
30 |
--------------------------------------------------------------------------------
/src/store/apps/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/store/apps/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | export default {
10 | moduleName: 'Apps',
11 | store: {
12 | namespaced: true,
13 | state,
14 | actions,
15 | mutations
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/store/apps/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/store/apps/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/store/platform/actions.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {}
6 |
--------------------------------------------------------------------------------
/src/store/platform/index.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | import state from './state'
6 | import actions from './actions'
7 | import mutations from './mutations'
8 |
9 | export default {
10 | moduleName: 'Platform',
11 | store: {
12 | namespaced: true,
13 | state,
14 | actions,
15 | mutations
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/store/platform/mutations.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {
6 | 'userInfo/update': (state, data) => {
7 | state.userInfo = {
8 | ...data
9 | }
10 | },
11 | 'userInfo/reset': (state, data) => {
12 | state.userInfo = {
13 | isLogin: false
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/src/store/platform/state.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by OXOYO on 2017/12/5.
3 | */
4 |
5 | export default {
6 | userInfo: {
7 | isLogin: false
8 | },
9 | // 应用默认图标
10 | appIcon: './static/app.png'
11 | }
12 |
--------------------------------------------------------------------------------
/src/themes/index.less:
--------------------------------------------------------------------------------
1 | @import '~iview/src/styles/index.less';
2 |
3 | // Here are the variables to cover, such as:
4 | @border-radius-base : 0;
5 | @border-radius-small : 0;
6 | @btn-border-radius : 0;
7 | @btn-border-radius-small: 0;
8 |
9 | /* 根组件修改iview $Message组件样式 */
10 | .ivu-message-notice {
11 | width: auto;
12 | vertical-align: middle;
13 | left: 0;
14 | display: block;
15 | clear: both;
16 | position: relative;
17 | margin-bottom: 5px;
18 | }
19 |
--------------------------------------------------------------------------------
/static/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/.gitkeep
--------------------------------------------------------------------------------
/static/X-Logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/static/app.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/app.png
--------------------------------------------------------------------------------
/static/apps/AccountManagement/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/AccountManagement/logo.png
--------------------------------------------------------------------------------
/static/apps/AmapDitu/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/AmapDitu/logo.png
--------------------------------------------------------------------------------
/static/apps/ApplicationMarket/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/ApplicationMarket/logo.png
--------------------------------------------------------------------------------
/static/apps/BaiduFanyi/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/BaiduFanyi/logo.png
--------------------------------------------------------------------------------
/static/apps/BaiduMap/logo.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/BaiduMap/logo.jpg
--------------------------------------------------------------------------------
/static/apps/Blog/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/Blog/logo.png
--------------------------------------------------------------------------------
/static/apps/GoFire/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/GoFire/logo.png
--------------------------------------------------------------------------------
/static/apps/GoogleTranslate/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/GoogleTranslate/logo.png
--------------------------------------------------------------------------------
/static/apps/PersonalCenter/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/PersonalCenter/logo.png
--------------------------------------------------------------------------------
/static/apps/Photoshop/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/Photoshop/logo.png
--------------------------------------------------------------------------------
/static/apps/SystemLog/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/SystemLog/logo.png
--------------------------------------------------------------------------------
/static/apps/Weather/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/Weather/logo.png
--------------------------------------------------------------------------------
/static/apps/Weixin/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/Weixin/logo.png
--------------------------------------------------------------------------------
/static/apps/XBoard/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/XBoard/logo.png
--------------------------------------------------------------------------------
/static/apps/XPlayer/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/XPlayer/logo.png
--------------------------------------------------------------------------------
/static/apps/iChat/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/iChat/logo.png
--------------------------------------------------------------------------------
/static/apps/iClock/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/iClock/logo.png
--------------------------------------------------------------------------------
/static/apps/iImage/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/apps/iImage/logo.png
--------------------------------------------------------------------------------
/static/favicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/favicon.png
--------------------------------------------------------------------------------
/static/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/logo.png
--------------------------------------------------------------------------------
/static/logo.psd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/logo.psd
--------------------------------------------------------------------------------
/static/win7/cursor.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/win7/cursor.gif
--------------------------------------------------------------------------------
/static/win7/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Win7 Welcome
6 |
47 |
48 |
49 |
50 |
51 |
52 |

Welcome
53 |
54 |
55 |

56 |
57 |
58 |
59 |
60 |
--------------------------------------------------------------------------------
/static/win7/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/win7/logo.png
--------------------------------------------------------------------------------
/static/win7/wallpaper.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/OXOYO/X-WebDesktop-Vue/8482f1dc55e39ffeff6fb9916fd5103f9e2031ef/static/win7/wallpaper.jpg
--------------------------------------------------------------------------------
/test/e2e/custom-assertions/elementCount.js:
--------------------------------------------------------------------------------
1 | // A custom Nightwatch assertion.
2 | // the name of the method is the filename.
3 | // can be used in tests like this:
4 | //
5 | // browser.assert.elementCount(selector, count)
6 | //
7 | // for how to write custom assertions see
8 | // http://nightwatchjs.org/guide#writing-custom-assertions
9 | exports.assertion = function (selector, count) {
10 | this.message = 'Testing if element <' + selector + '> has count: ' + count
11 | this.expected = count
12 | this.pass = function (val) {
13 | return val === this.expected
14 | }
15 | this.value = function (res) {
16 | return res.value
17 | }
18 | this.command = function (cb) {
19 | var self = this
20 | return this.api.execute(function (selector) {
21 | return document.querySelectorAll(selector).length
22 | }, [selector], function (res) {
23 | cb.call(self, res)
24 | })
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/test/e2e/nightwatch.conf.js:
--------------------------------------------------------------------------------
1 | require('babel-register')
2 | var config = require('../../config')
3 |
4 | // http://nightwatchjs.org/gettingstarted#settings-file
5 | module.exports = {
6 | src_folders: ['test/e2e/specs'],
7 | output_folder: 'test/e2e/reports',
8 | custom_assertions_path: ['test/e2e/custom-assertions'],
9 |
10 | selenium: {
11 | start_process: true,
12 | server_path: require('selenium-server').path,
13 | host: '127.0.0.1',
14 | port: 4444,
15 | cli_args: {
16 | 'webdriver.chrome.driver': require('chromedriver').path
17 | }
18 | },
19 |
20 | test_settings: {
21 | default: {
22 | selenium_port: 4444,
23 | selenium_host: 'localhost',
24 | silent: true,
25 | globals: {
26 | devServerURL: 'http://localhost:' + (process.env.PORT || config.dev.port)
27 | }
28 | },
29 |
30 | chrome: {
31 | desiredCapabilities: {
32 | browserName: 'chrome',
33 | javascriptEnabled: true,
34 | acceptSslCerts: true
35 | }
36 | },
37 |
38 | firefox: {
39 | desiredCapabilities: {
40 | browserName: 'firefox',
41 | javascriptEnabled: true,
42 | acceptSslCerts: true
43 | }
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/test/e2e/runner.js:
--------------------------------------------------------------------------------
1 | // 1. start the dev server using production config
2 | process.env.NODE_ENV = 'testing'
3 | var server = require('../../build/dev-server.js')
4 |
5 | server.ready.then(() => {
6 | // 2. run the nightwatch test suite against it
7 | // to run in additional browsers:
8 | // 1. add an entry in test/e2e/nightwatch.conf.json under "test_settings"
9 | // 2. add it to the --env flag below
10 | // or override the environment flag, for example: `npm run e2e -- --env chrome,firefox`
11 | // For more information on Nightwatch's config file, see
12 | // http://nightwatchjs.org/guide#settings-file
13 | var opts = process.argv.slice(2)
14 | if (opts.indexOf('--config') === -1) {
15 | opts = opts.concat(['--config', 'test/e2e/nightwatch.conf.js'])
16 | }
17 | if (opts.indexOf('--env') === -1) {
18 | opts = opts.concat(['--env', 'chrome'])
19 | }
20 |
21 | var spawn = require('cross-spawn')
22 | var runner = spawn('./node_modules/.bin/nightwatch', opts, { stdio: 'inherit' })
23 |
24 | runner.on('exit', function (code) {
25 | server.close()
26 | process.exit(code)
27 | })
28 |
29 | runner.on('error', function (err) {
30 | server.close()
31 | throw err
32 | })
33 | })
34 |
--------------------------------------------------------------------------------
/test/e2e/specs/test.js:
--------------------------------------------------------------------------------
1 | // For authoring Nightwatch tests, see
2 | // http://nightwatchjs.org/guide#usage
3 |
4 | module.exports = {
5 | 'default e2e tests': function (browser) {
6 | // automatically uses dev Server port from /config.index.js
7 | // default: http://localhost:8080
8 | // see nightwatch.conf.js
9 | const devServer = browser.globals.devServerURL
10 |
11 | browser
12 | .url(devServer)
13 | .waitForElementVisible('#app', 5000)
14 | .assert.elementPresent('.hello')
15 | .assert.containsText('h1', 'Welcome to Your Vue.js App')
16 | .assert.elementCount('img', 1)
17 | .end()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/test/unit/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "env": {
3 | "mocha": true
4 | },
5 | "globals": {
6 | "expect": true,
7 | "sinon": true
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/test/unit/index.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 |
3 | Vue.config.productionTip = false
4 |
5 | // require all test files (files that ends with .spec.js)
6 | const testsContext = require.context('./specs', true, /\.spec$/)
7 | testsContext.keys().forEach(testsContext)
8 |
9 | // require all src files except main.js for coverage.
10 | // you can also change this to match only the subset of files that
11 | // you want coverage for.
12 | const srcContext = require.context('../../src', true, /^\.\/(?!main(\.js)?$)/)
13 | srcContext.keys().forEach(srcContext)
14 |
--------------------------------------------------------------------------------
/test/unit/karma.conf.js:
--------------------------------------------------------------------------------
1 | // This is a karma config file. For more details see
2 | // http://karma-runner.github.io/0.13/config/configuration-file.html
3 | // we are also using it with karma-webpack
4 | // https://github.com/webpack/karma-webpack
5 |
6 | var webpackConfig = require('../../build/webpack.test.conf')
7 |
8 | module.exports = function (config) {
9 | config.set({
10 | // to run in additional browsers:
11 | // 1. install corresponding karma launcher
12 | // http://karma-runner.github.io/0.13/config/browsers.html
13 | // 2. add it to the `browsers` array below.
14 | browsers: ['PhantomJS'],
15 | frameworks: ['mocha', 'sinon-chai', 'phantomjs-shim'],
16 | reporters: ['spec', 'coverage'],
17 | files: ['./index.js'],
18 | preprocessors: {
19 | './index.js': ['webpack', 'sourcemap']
20 | },
21 | webpack: webpackConfig,
22 | webpackMiddleware: {
23 | noInfo: true
24 | },
25 | coverageReporter: {
26 | dir: './coverage',
27 | reporters: [
28 | { type: 'lcov', subdir: '.' },
29 | { type: 'text-summary' }
30 | ]
31 | }
32 | })
33 | }
34 |
--------------------------------------------------------------------------------
/test/unit/specs/Hello.spec.js:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import Hello from '@/components/Hello'
3 |
4 | describe('Hello.vue', () => {
5 | it('should render correct contents', () => {
6 | const Constructor = Vue.extend(Hello)
7 | const vm = new Constructor().$mount()
8 | expect(vm.$el.querySelector('.hello h1').textContent)
9 | .to.equal('Welcome to Your Vue.js App')
10 | })
11 | })
12 |
--------------------------------------------------------------------------------