From 77acfb47b36eadf94b9aa54a95039f5496ff1904 Mon Sep 17 00:00:00 2001 From: kPherox Date: Mon, 8 Apr 2019 01:14:32 +0900 Subject: [PATCH] Add about window --- info.json | 1 + package-lock.json | 27 ++++++++++++++++ package.json | 36 +++++++++++---------- src/about/About.vue | 77 ++++++++++++++++++++++++++++++++++++++++++++ src/about/main.js | 8 +++++ src/assets/logo.png | Bin 6849 -> 12952 bytes src/background.js | 38 +++++++++++++++++++--- vue.config.js | 8 ++++- 8 files changed, 173 insertions(+), 22 deletions(-) create mode 100644 src/about/About.vue create mode 100644 src/about/main.js diff --git a/info.json b/info.json index 47d0580b..21521b1f 100644 --- a/info.json +++ b/info.json @@ -1,5 +1,6 @@ { "appId": "dev.kpherox.thedesk-vue", "copyright": "Copyright © 2018 TheDesk", + "codeName": "Pre Theater", "documentURL": "https://github.com/kPherox/TheDesk-Vue#readme" } diff --git a/package-lock.json b/package-lock.json index d9558ae2..e27091da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4047,6 +4047,17 @@ } } }, + "csswring": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/csswring/-/csswring-7.0.0.tgz", + "integrity": "sha512-yl9lWqdhVn4gD0Vf00BMKKFuLq19hpz87VTDBRYFa+xWjRdfa/+bddCsWN7mbwfXWFoL5RwDOJmKakkC/VaH7w==", + "dev": true, + "requires": { + "minimist": "^1.2.0", + "onecolor": "^3.0.5", + "postcss": "^7.0.0" + } + }, "currently-unhandled": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", @@ -9151,6 +9162,12 @@ "wrappy": "1" } }, + "onecolor": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/onecolor/-/onecolor-3.1.0.tgz", + "integrity": "sha512-YZSypViXzu3ul5LMu/m6XjJ9ol8qAy9S2VjHl5E6UlhUH1KGKWabyEJifn0Jjpw23bYDzC2ucKMPGiH5kfwSGQ==", + "dev": true + }, "onetime": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", @@ -10060,6 +10077,16 @@ } } }, + "postcss-nested": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-4.1.2.tgz", + "integrity": "sha512-9bQFr2TezohU3KRSu9f6sfecXmf/x6RXDedl8CHF6fyuyVW7UqgNMRdWMHZQWuFY6Xqs2NYk+Fj4Z4vSOf7PQg==", + "dev": true, + "requires": { + "postcss": "^7.0.14", + "postcss-selector-parser": "^5.0.0" + } + }, "postcss-normalize-charset": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-4.0.1.tgz", diff --git a/package.json b/package.json index 1187f843..4d481aeb 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,20 @@ { "name": "thedesk-vue", - "productName": "TheDesk Vue", "version": "0.1.0", - "description": "TheDesk is a Mastodon client for PC.", "private": true, - "license": "GPL-3.0", - "repository": "github:kPherox/TheDesk-Vue", - "bugs": { - "url": "https://github.com/kPherox/TheDesk-Vue/issues" - }, - "homepage": "https://github.com/kPherox/TheDesk-Vue", + "description": "TheDesk is a Mastodon client for PC.", "author": { "name": "Cutls", "url": "https://kirishima.clooud/@Cutls", "email": "web-pro@cutls.com" }, - "contributors": [ - { - "name": "kPherox", - "url": "https://www.kr-kp.com/", - "email": "admin@mail.kr-kp.com" - } - ], "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", "electron:build": "vue-cli-service electron:build", - "electron:serve": "vue-cli-service electron:serve", "electron:generate-icons": "electron-icon-builder --input=./public/icon.png --output=build --flatten", + "electron:serve": "vue-cli-service electron:serve", "postinstall": "electron-builder install-app-deps", "postuninstall": "electron-builder install-app-deps" }, @@ -42,12 +28,14 @@ "@vue/cli-plugin-eslint": "^3.5.0", "@vue/cli-service": "^3.5.0", "babel-eslint": "^10.0.1", + "csswring": "^7.0.0", "electron": "^4.0.0", "electron-context-menu": "^0.11.0", "electron-icon-builder": "^1.0.0", "electron-localshortcut": "^3.1.0", "eslint": "^5.8.0", "eslint-plugin-vue": "^5.0.0", + "postcss-nested": "^4.1.2", "vue-cli-plugin-electron-builder": "^1.2.0", "vue-template-compiler": "^2.5.21" }, @@ -67,5 +55,19 @@ }, "browserslist": [ "electron >= 4.0.0" - ] + ], + "bugs": { + "url": "https://github.com/kPherox/TheDesk-Vue/issues" + }, + "contributors": [ + { + "name": "kPherox", + "url": "https://www.kr-kp.com/", + "email": "admin@mail.kr-kp.com" + } + ], + "homepage": "https://github.com/kPherox/TheDesk-Vue", + "license": "GPL-3.0", + "productName": "TheDesk Vue", + "repository": "github:kPherox/TheDesk-Vue" } diff --git a/src/about/About.vue b/src/about/About.vue new file mode 100644 index 00000000..79a7d533 --- /dev/null +++ b/src/about/About.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/src/about/main.js b/src/about/main.js new file mode 100644 index 00000000..f9cf91fb --- /dev/null +++ b/src/about/main.js @@ -0,0 +1,8 @@ +import Vue from 'vue' +import About from './About.vue' + +Vue.config.productionTip = false + +new Vue({ + render: h => h(About), +}).$mount('#app') diff --git a/src/assets/logo.png b/src/assets/logo.png index f3d2503fc2a44b5053b0837ebea6e87a2d339a43..2978cca8d31abc8f169e829c1c5940d203e19767 100644 GIT binary patch literal 12952 zcmZv@1yq#Z7dA?VbV+v&(mex6=O7@UAV`R`G}7JO64DJ4g3{d~9YaXBNO#xw^8NkY zySVGJm^H+SeRe$i+50^c`dV2I>lxWII5;>g1$k*TI5>FVM|e0i6yQzA{+kK#hM*uV z@x}#ym&|J%4vt6l@wdHpRG&8+*@p*9?!(E+dzFM+dlX?gbRUUV*oORm=Y&L(M7rgU z&4YVJzOm8q_q^lk{`yf+BMh0`Gl}j+GkbbI+uV%t&HiB8#lhXZ{(h2&W=sWd8t;uL zPFN1;|L>atQz8wET2us-f6Gr}&SX$zfQAZhLCm3Z2_Ke2LF9iq07sRZTy@OPeRNvw zq4qmrBwV=lnT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VG2}2L-(0o)54C509C&77i zrjSi{X*WV=%C17((N^6R4Ya*4#6s_L99RtQ>m(%#nQ#wrRC8Y%yxkH;d!MdY+Tw@r zjpSnK`;C-U{ATcgaxoEpP0Gf+tx);buOMlK=01D|J+ROu37qc*rD(w`#O=3*O*w9?biwNoq3WN1`&Wp8TvKj3C z3HR9ssH7a&Vr<6waJrU zdLg!ieYz%U^bmpn%;(V%%ugMk92&?_XX1K@mwnVSE6!&%P%Wdi7_h`CpScvspMx?N zQUR>oadnG17#hNc$pkTp+9lW+MBKHRZ~74XWUryd)4yd zj98$%XmIL4(9OnoeO5Fnyn&fpQ9b0h4e6EHHw*l68j;>(ya`g^S&y2{O8U>1*>4zR zq*WSI_2o$CHQ?x0!wl9bpx|Cm2+kFMR)oMud1%n2=qn5nE&t@Fgr#=Zv2?}wtEz^T z9rrj=?IH*qI5{G@Rn&}^Z{+TW}mQeb9=8b<_a`&Cm#n%n~ zU47MvCBsdXFB1+adOO)03+nczfWa#vwk#r{o{dF)QWya9v2nv43Zp3%Ps}($lA02*_g25t;|T{A5snSY?3A zrRQ~(Ygh_ebltHo1VCbJb*eOAr;4cnlXLvI>*$-#AVsGg6B1r7@;g^L zFlJ_th0vxO7;-opU@WAFe;<}?!2q?RBrFK5U{*ai@NLKZ^};Ul}beukveh?TQn;$%9=R+DX07m82gP$=}Uo_%&ngV`}Hyv8g{u z3SWzTGV|cwQuFIs7ZDOqO_fGf8Q`8MwL}eUp>q?4eqCmOTcwQuXtQckPy|4F1on8l zP*h>d+cH#XQf|+6c|S{7SF(Lg>bR~l(0uY?O{OEVlaxa5@e%T&xju=o1`=OD#qc16 zSvyH*my(dcp6~VqR;o(#@m44Lug@~_qw+HA=mS#Z^4reBy8iV?H~I;{LQWk3aKK8$bLRyt$g?- windows[windowName].reload()) lastAction(win) windows[windowName] = win @@ -79,7 +85,9 @@ function openMainWindow() { height: 600, autoHideMenuBar: true, } - createWindow('main', 'index.html', winOpts, true, null, !process.env.IS_TEST) + createWindow('main', 'index.html', winOpts, true, (win) => { + localShortcut.register(win, 'F5', () => windows.main.reload()) + }, !process.env.IS_TEST) } // Quit when all windows are closed. @@ -133,7 +141,29 @@ const template = [ { label: app.getName(), submenu: [ - { role: 'about' }, + { + label: process.platform !== 'darwin' ? 'About' : `About ${app.getName()}`, + click: () => { + const winOpts = { + width: 296, + height: 432, + resizable: false, + minimizable: false, + maximizable: false, + fullscreenable: false, + autoHideMenuBar: true, + titleBarStyle: 'hiddenInset', + } + createWindow('about', 'about.html', winOpts, true, (win) => { + win.setMenuBarVisibility(false) + win.webContents.on('before-input-event', (event, input) => { + if (typeof windows.about !== 'undefined') + windows.about.webContents.setIgnoreMenuShortcuts(input.key !== "Escape") + }) + localShortcut.register(win, 'Esc', () => windows.about.destroy()) + }) + } + }, ] }, { diff --git a/vue.config.js b/vue.config.js index 028d3879..aeea02c1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -7,15 +7,21 @@ module.exports = { index: { entry: 'src/index/main.js', template: 'public/index.html', - filename: 'index.html', title: productName, }, + about: { + entry: 'src/about/main.js', + template: 'public/index.html', + title: `About`, + }, }, css: { loaderOptions: { postcss: { plugins: [ + require('postcss-nested')(), require('autoprefixer')({}), + require('CSSWring')(), ], }, },