diff --git a/README.md b/README.md index 82545f3..68f8fc5 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ - algorithm - Array - [InsertSoft](https://l1yuu.github.io/frontend-course-list/algorithm/array/insert-soft/) -- [desktop](https://l1yuu.github.io/frontend-course-list/typescript/desktop) +- [electron](https://l1yuu.github.io/frontend-course-list/typescript/electron) - framwork - [async](https://l1yuu.github.io/frontend-course-list/framWork/async/) - [html2canvas](https://l1yuu.github.io/frontend-course-list/framWork/html2canvas/) diff --git a/desktop/src/renderer/components/countDown/index.vue b/desktop/src/renderer/components/countDown/index.vue deleted file mode 100644 index 56dcf6b..0000000 --- a/desktop/src/renderer/components/countDown/index.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/desktop/src/renderer/router/index.js b/desktop/src/renderer/router/index.js deleted file mode 100644 index e7f03bb..0000000 --- a/desktop/src/renderer/router/index.js +++ /dev/null @@ -1,18 +0,0 @@ -import Vue from 'vue' -import Router from 'vue-router' - -Vue.use(Router) - -export default new Router({ - routes: [ - { - path: '/', - name: 'landing-page', - component: require('@/view/home/').default - }, - { - path: '*', - redirect: '/' - } - ] -}) diff --git a/desktop/src/renderer/view/home/index.vue b/desktop/src/renderer/view/home/index.vue deleted file mode 100644 index ca31b0a..0000000 --- a/desktop/src/renderer/view/home/index.vue +++ /dev/null @@ -1,21 +0,0 @@ - - - - - \ No newline at end of file diff --git a/desktop/.babelrc b/electron/.babelrc similarity index 100% rename from desktop/.babelrc rename to electron/.babelrc diff --git a/desktop/.electron-vue/build.js b/electron/.electron-vue/build.js similarity index 100% rename from desktop/.electron-vue/build.js rename to electron/.electron-vue/build.js diff --git a/desktop/.electron-vue/dev-client.js b/electron/.electron-vue/dev-client.js similarity index 100% rename from desktop/.electron-vue/dev-client.js rename to electron/.electron-vue/dev-client.js diff --git a/desktop/.electron-vue/dev-runner.js b/electron/.electron-vue/dev-runner.js similarity index 100% rename from desktop/.electron-vue/dev-runner.js rename to electron/.electron-vue/dev-runner.js diff --git a/desktop/.electron-vue/webpack.main.config.js b/electron/.electron-vue/webpack.main.config.js similarity index 100% rename from desktop/.electron-vue/webpack.main.config.js rename to electron/.electron-vue/webpack.main.config.js diff --git a/desktop/.electron-vue/webpack.renderer.config.js b/electron/.electron-vue/webpack.renderer.config.js similarity index 100% rename from desktop/.electron-vue/webpack.renderer.config.js rename to electron/.electron-vue/webpack.renderer.config.js diff --git a/desktop/.electron-vue/webpack.web.config.js b/electron/.electron-vue/webpack.web.config.js similarity index 100% rename from desktop/.electron-vue/webpack.web.config.js rename to electron/.electron-vue/webpack.web.config.js diff --git a/desktop/.gitignore b/electron/.gitignore similarity index 100% rename from desktop/.gitignore rename to electron/.gitignore diff --git a/desktop/.travis.yml b/electron/.travis.yml similarity index 100% rename from desktop/.travis.yml rename to electron/.travis.yml diff --git a/desktop/README.md b/electron/README.md similarity index 100% rename from desktop/README.md rename to electron/README.md diff --git a/desktop/appveyor.yml b/electron/appveyor.yml similarity index 100% rename from desktop/appveyor.yml rename to electron/appveyor.yml diff --git a/desktop/build/icons/256x256.png b/electron/build/icons/256x256.png similarity index 100% rename from desktop/build/icons/256x256.png rename to electron/build/icons/256x256.png diff --git a/desktop/build/icons/icon.icns b/electron/build/icons/icon.icns similarity index 100% rename from desktop/build/icons/icon.icns rename to electron/build/icons/icon.icns diff --git a/desktop/build/icons/icon.ico b/electron/build/icons/icon.ico similarity index 100% rename from desktop/build/icons/icon.ico rename to electron/build/icons/icon.ico diff --git a/desktop/dist/electron/.gitkeep b/electron/dist/electron/.gitkeep similarity index 100% rename from desktop/dist/electron/.gitkeep rename to electron/dist/electron/.gitkeep diff --git a/desktop/dist/web/.gitkeep b/electron/dist/web/.gitkeep similarity index 100% rename from desktop/dist/web/.gitkeep rename to electron/dist/web/.gitkeep diff --git a/desktop/package.json b/electron/package.json similarity index 100% rename from desktop/package.json rename to electron/package.json diff --git a/desktop/src/index.ejs b/electron/src/index.ejs similarity index 96% rename from desktop/src/index.ejs rename to electron/src/index.ejs index 65f9036..5e5c5b9 100644 --- a/desktop/src/index.ejs +++ b/electron/src/index.ejs @@ -2,7 +2,7 @@ - countdown + Electron <% if (htmlWebpackPlugin.options.nodeModules) { %> + + \ No newline at end of file diff --git a/electron/src/renderer/components/menuBar/index.vue b/electron/src/renderer/components/menuBar/index.vue new file mode 100644 index 0000000..a6ca2f0 --- /dev/null +++ b/electron/src/renderer/components/menuBar/index.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/desktop/src/renderer/main.js b/electron/src/renderer/main.js similarity index 100% rename from desktop/src/renderer/main.js rename to electron/src/renderer/main.js diff --git a/electron/src/renderer/router/index.js b/electron/src/renderer/router/index.js new file mode 100644 index 0000000..4ff12dd --- /dev/null +++ b/electron/src/renderer/router/index.js @@ -0,0 +1,22 @@ +import Vue from 'vue' +import Router from 'vue-router' + +Vue.use(Router) + +export default new Router({ + routes: [ + { + path: '/', + name: 'home', + component: () => import('@/view/layout'), + redirect: 'todo', + children: [ + { + path: '/todo', + name: 'todo', + component: () => import('@/view/todo') + } + ] + } + ] +}) diff --git a/desktop/src/renderer/store/index.js b/electron/src/renderer/store/index.js similarity index 100% rename from desktop/src/renderer/store/index.js rename to electron/src/renderer/store/index.js diff --git a/desktop/src/renderer/store/modules/Counter.js b/electron/src/renderer/store/modules/Counter.js similarity index 100% rename from desktop/src/renderer/store/modules/Counter.js rename to electron/src/renderer/store/modules/Counter.js diff --git a/desktop/src/renderer/store/modules/index.js b/electron/src/renderer/store/modules/index.js similarity index 100% rename from desktop/src/renderer/store/modules/index.js rename to electron/src/renderer/store/modules/index.js diff --git a/electron/src/renderer/view/layout/index.vue b/electron/src/renderer/view/layout/index.vue new file mode 100644 index 0000000..653ed80 --- /dev/null +++ b/electron/src/renderer/view/layout/index.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/electron/src/renderer/view/todo/index.vue b/electron/src/renderer/view/todo/index.vue new file mode 100644 index 0000000..463deac --- /dev/null +++ b/electron/src/renderer/view/todo/index.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/desktop/static/.gitkeep b/electron/static/.gitkeep similarity index 100% rename from desktop/static/.gitkeep rename to electron/static/.gitkeep diff --git a/native-api/clipboard/index.js b/native-api/clipboard/index.js index e66fba8..92560c6 100644 --- a/native-api/clipboard/index.js +++ b/native-api/clipboard/index.js @@ -1,10 +1,15 @@ /* * @Author: Blue * @Date: 2020-07-01 15:27:05 - * @Last Modified by: Blue - * @Last Modified time: 2020-07-01 15:27:05 + * @Last Modified by: Blue + * @Last Modified time: 2020-07-02 10:56:50 */ - \ No newline at end of file + navigator.permissions.query({ name: 'clipboard-read' }).then(result => { + + + + + }) \ No newline at end of file