├── .eslintrc.js
├── .gitignore
├── LICENSE
├── README.md
├── makefile.js
├── package-lock.json
├── package.json
├── src
├── assets
│ ├── fonts
│ │ └── icomoon.woff
│ ├── images
│ │ └── icon.png
│ └── locales
│ │ ├── fr-FR.json
│ │ ├── zh-CN.json
│ │ └── zh-TW.json
├── components
│ ├── app-updater.vue
│ ├── date-formatter.js
│ ├── editable-item.vue
│ ├── editable-list.vue
│ ├── game-view.vue
│ ├── hyper-link.vue
│ ├── input-area.vue
│ ├── item-icon.vue
│ ├── pretty-checkbox.vue
│ ├── root.vue
│ ├── sheet-stick.vue
│ ├── sheet-switcher.vue
│ ├── store.js
│ ├── super-button.vue
│ ├── title-bar.vue
│ └── todo-view.vue
├── index.html
├── main.js
├── plugins
│ ├── binding.js
│ ├── flux.js
│ ├── i18n.js
│ ├── notifier.js
│ ├── schedule.js
│ ├── storage.js
│ └── variables.js
├── resources
│ ├── default
│ │ ├── custom.css
│ │ ├── custom.js
│ │ └── translation.json
│ ├── fonts
│ │ └── NotoSansCJKsc-Regular.otf_
│ └── visual
│ │ ├── tile.png
│ │ └── todu.VisualElementsManifest.xml
└── style.css
├── webpack.config.js
└── window.js
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: ['html'],
3 | parserOptions: {
4 | ecmaVersion: 2018,
5 | sourceType: 'module',
6 | },
7 | env: {
8 | es6: true,
9 | node: true,
10 | browser: true,
11 | },
12 | rules: {
13 | /** Possible Errors */
14 | 'for-direction': 'error',
15 | 'getter-return': 'error',
16 | 'no-await-in-loop': 'error',
17 | 'no-compare-neg-zero': 'error',
18 | 'no-cond-assign': 'error',
19 | // 'no-console': 'off',
20 | 'no-constant-condition': ['error', { checkLoops: false }],
21 | // 'no-control-regex': 'off',
22 | 'no-debugger': 'error',
23 | 'no-dupe-args': 'error',
24 | 'no-dupe-keys': 'error',
25 | 'no-duplicate-case': 'error',
26 | 'no-empty': ['error', { allowEmptyCatch: true }],
27 | 'no-empty-character-class': 'error',
28 | 'no-ex-assign': 'error',
29 | 'no-extra-boolean-cast': 'error',
30 | 'no-extra-parens': ['warn', 'all', { nestedBinaryExpressions: false }],
31 | 'no-extra-semi': 'error',
32 | 'no-func-assign': 'error',
33 | 'no-inner-declarations': 'error',
34 | 'no-invalid-regexp': 'error',
35 | 'no-irregular-whitespace': 'error',
36 | 'no-obj-calls': 'error',
37 | 'no-prototype-builtins': 'warn',
38 | 'no-regex-spaces': 'error',
39 | 'no-sparse-arrays': 'error',
40 | 'no-template-curly-in-string': 'error',
41 | 'no-unexpected-multiline': 'error',
42 | 'no-unreachable': 'error',
43 | 'no-unsafe-finally': 'error',
44 | 'no-unsafe-negation': 'error',
45 | 'use-isnan': 'error',
46 | // 'valid-jsdoc': 'off',
47 | 'valid-typeof': 'error',
48 |
49 | /** Best Practices */
50 | 'accessor-pairs': 'error',
51 | 'array-callback-return': 'error',
52 | 'block-scoped-var': 'error',
53 | 'class-methods-use-this': 'warn',
54 | 'complexity': ['warn', { max: 20 }],
55 | 'consistent-return': 'warn',
56 | 'curly': ['error', 'multi-line', 'consistent'],
57 | 'default-case': 'warn',
58 | 'dot-location': ['error', 'property'],
59 | 'dot-notation': 'error',
60 | 'eqeqeq': ['error', 'always', { null: 'ignore' }],
61 | 'guard-for-in': 'error',
62 | 'max-classes-per-file': ['error', 1],
63 | 'no-alert': 'warn',
64 | 'no-caller': 'error',
65 | 'no-case-declarations': 'error',
66 | 'no-div-regex': 'error',
67 | 'no-else-return': 'warn',
68 | 'no-empty-function': ['error', { allow: ['arrowFunctions'] }],
69 | 'no-empty-pattern': 'error',
70 | // 'no-eq-null': 'off',
71 | 'no-eval': 'error',
72 | 'no-extend-native': 'warn',
73 | 'no-extra-bind': 'error',
74 | 'no-extra-label': 'error',
75 | 'no-fallthrough': 'error',
76 | 'no-floating-decimal': 'error',
77 | 'no-global-assign': 'error',
78 | 'no-implicit-coercion': 'warn',
79 | 'no-implicit-globals': 'warn',
80 | 'no-implied-eval': 'error',
81 | 'no-invalid-this': 'error',
82 | 'no-iterator': 'error',
83 | 'no-labels': 'warn',
84 | 'no-lone-blocks': 'error',
85 | 'no-loop-func': 'error',
86 | // 'no-magic-numbers': 'off',
87 | 'no-multi-spaces': 'error',
88 | 'no-multi-str': 'error',
89 | // 'no-new': 'off',
90 | 'no-new-func': 'error',
91 | 'no-new-wrappers': 'error',
92 | 'no-octal': 'error',
93 | 'no-octal-escape': 'error',
94 | // 'no-param-reassign': 'off',
95 | 'no-proto': 'error',
96 | 'no-redeclare': 'error',
97 | // 'no-restricted-properties': 'off',
98 | 'no-return-assign': 'warn',
99 | 'no-return-await': 'error',
100 | 'no-script-url': 'warn',
101 | 'no-self-assign': 'error',
102 | 'no-self-compare': 'error',
103 | 'no-sequences': 'error',
104 | 'no-throw-literal': 'error',
105 | 'no-unmodified-loop-condition': 'error',
106 | 'no-unused-expressions': ['error', { allowShortCircuit: true }],
107 | 'no-unused-labels': 'error',
108 | 'no-useless-call': 'error',
109 | 'no-useless-concat': 'error',
110 | 'no-useless-escape': 'warn',
111 | 'no-useless-return': 'warn',
112 | // 'no-void': 'off',
113 | // 'no-warning-comments': 'off',
114 | 'no-with': 'warn',
115 | 'prefer-promise-reject-errors': 'error',
116 | 'radix': 'error',
117 | 'require-await': 'warn',
118 | 'vars-on-top': 'error',
119 | 'wrap-iife': ['error', 'inside'],
120 | 'yoda': 'warn',
121 |
122 | /** Strict Mode */
123 | // 'strict': 'off',
124 |
125 | /** Variables */
126 | // 'init-declarations': 'off',
127 | 'no-delete-var': 'error',
128 | 'no-label-var': 'error',
129 | // 'no-restricted-globals': 'off',
130 | 'no-shadow': 'warn',
131 | 'no-shadow-restricted-names': 'error',
132 | 'no-undef': 'error',
133 | 'no-undef-init': 'error',
134 | // 'no-undefined': 'off',
135 | 'no-unused-vars': ['error', { args: 'none' }],
136 | 'no-use-before-define': ['error', 'nofunc'],
137 |
138 | /** Node.js and CommonJS */
139 | // 'callback-return': 'off',
140 | 'global-require': 'warn',
141 | 'handle-callback-err': 'warn',
142 | 'no-buffer-constructor': 'error',
143 | 'no-mixed-requires': 'error',
144 | 'no-new-require': 'error',
145 | 'no-path-concat': 'warn',
146 | // 'no-process-env': 'off',
147 | 'no-process-exit': 'warn',
148 | // 'no-restricted-modules': 'off',
149 | // 'no-sync': 'off',
150 |
151 | /** Stylistic Issues */
152 | 'array-bracket-newline': ['error', { multiline: true }],
153 | 'array-bracket-spacing': ['error', 'never'],
154 | // 'array-element-newline': 'off',
155 | // 'block-spacing': 'off',
156 | 'brace-style': ['error', '1tbs', { allowSingleLine: true }],
157 | 'camelcase': 'warn',
158 | // 'capitalized-comments': 'off',
159 | 'comma-dangle': ['error', 'only-multiline'],
160 | 'comma-spacing': ['error', { before: false, after: true }],
161 | 'comma-style': ['error', 'last'],
162 | 'computed-property-spacing': ['error', 'never'],
163 | // 'consistent-this': 'off',
164 | 'eol-last': ['error', 'always'],
165 | 'func-call-spacing': ['error', 'never'],
166 | 'func-name-matching': ['error', 'always'],
167 | // 'func-names': 'off',
168 | 'func-style': ['warn', 'declaration', { allowArrowFunctions: true }],
169 | 'function-paren-newline': ['warn', 'consistent'],
170 | // 'id-blacklist': 'off',
171 | // 'id-length': 'off',
172 | // 'id-match': 'off',
173 | // 'implicit-arrow-linebreak': 'off',
174 | 'indent': ['error', 2, { SwitchCase: 1 }],
175 | 'jsx-quotes': ['error', 'prefer-double'],
176 | 'key-spacing': ['error', {
177 | beforeColon: false, afterColon: true, mode: 'strict'
178 | }],
179 | 'keyword-spacing': ['error', { before: true, after: true }],
180 | // 'line-comment-position': 'off',
181 | 'linebreak-style': ['error', 'unix'],
182 | // 'lines-around-comment': 'off',
183 | // 'lines-between-class-members': 'off',
184 | 'max-depth': ['error', { max: 4 }],
185 | 'max-len': ['error', {
186 | code: 80, ignoreStrings: true, ignoreTemplateLiterals: true,
187 | ignoreRegExpLiterals: true
188 | }],
189 | 'max-lines': ['error', { max: 300 }],
190 | 'max-lines-per-function': ['error', { max: 50 }],
191 | 'max-nested-callbacks': ['error', { max: 4 }],
192 | 'max-params': ['error', { max: 3 }],
193 | // 'max-statements': 'off',
194 | // 'max-statements-per-line': 'off',
195 | // 'multiline-comment-style': 'off',
196 | // 'multiline-ternary': 'off',
197 | 'new-cap': ['error', { capIsNew: false }],
198 | 'new-parens': 'error',
199 | // 'newline-per-chained-call': 'off',
200 | 'no-array-constructor': 'error',
201 | 'no-bitwise': 'warn',
202 | // 'no-continue': 'off',
203 | // 'no-inline-comments': 'off',
204 | 'no-lonely-if': 'warn',
205 | 'no-mixed-operators': 'warn',
206 | 'no-mixed-spaces-and-tabs': 'error',
207 | 'no-multi-assign': 'warn',
208 | 'no-multiple-empty-lines': ['warn', { max: 2, maxEOF: 1, maxBOF: 0 }],
209 | // 'no-negated-condition': 'off',
210 | 'no-nested-ternary': 'warn',
211 | 'no-new-object': 'error',
212 | 'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
213 | // 'no-restricted-syntax': 'off',
214 | 'no-tabs': 'error',
215 | // 'no-ternary': 'off',
216 | 'no-trailing-spaces': 'error',
217 | 'no-underscore-dangle': 'warn',
218 | 'no-unneeded-ternary': 'error',
219 | 'no-whitespace-before-property': 'error',
220 | 'nonblock-statement-body-position': 'off',
221 | 'object-curly-newline': ['error', { consistent: true }],
222 | // 'object-curly-spacing': 'off',
223 | // 'object-property-newline': 'off',
224 | 'one-var': ['error', 'never'],
225 | // 'one-var-declaration-per-line': 'off',
226 | 'operator-assignment': 'warn',
227 | 'operator-linebreak': ['error', 'after'],
228 | // 'padded-blocks': 'off',
229 | // 'padding-line-between-statements': 'off',
230 | 'prefer-object-spread': 'warn',
231 | // 'quote-props': 'off',
232 | 'quotes': ['error', 'single'],
233 | // 'require-jsdoc': 'off',
234 | 'semi': ['error', 'never'],
235 | 'semi-spacing': ['error', { before: false, after: true }],
236 | // 'semi-style': 'off',
237 | // 'sort-keys': 'off',
238 | // 'sort-vars': 'off',
239 | 'space-before-blocks': ['error', 'always'],
240 | 'space-before-function-paren': ['error', { named: 'never' }],
241 | 'space-in-parens': ['error', 'never'],
242 | 'space-infix-ops': 'error',
243 | 'space-unary-ops': ['error', { words: true, nonwords: false }],
244 | 'spaced-comment': ['error', 'always', { markers: ['*'] }],
245 | 'switch-colon-spacing': ['error', { before: false, after: true }],
246 | 'template-tag-spacing': ['error', 'never'],
247 | 'unicode-bom': ['error', 'never'],
248 | // 'wrap-regex': 'off',
249 |
250 | /** ECMAScript 6 */
251 | 'arrow-body-style': 'off',
252 | 'arrow-parens': ['error', 'as-needed'],
253 | 'arrow-spacing': ['error', { before: true, after: true }],
254 | 'constructor-super': 'error',
255 | 'generator-star-spacing': ['error', {
256 | before: false, after: true, method: 'neither'
257 | }],
258 | 'no-class-assign': 'error',
259 | 'no-confusing-arrow': 'error',
260 | 'no-const-assign': 'error',
261 | 'no-dupe-class-members': 'error',
262 | 'no-duplicate-imports': 'error',
263 | 'no-new-symbol': 'error',
264 | // 'no-restricted-imports': 'off',
265 | 'no-this-before-super': 'error',
266 | 'no-useless-computed-key': 'error',
267 | 'no-useless-constructor': 'error',
268 | 'no-useless-rename': 'error',
269 | 'no-var': 'error',
270 | 'object-shorthand': 'warn',
271 | 'prefer-arrow-callback': 'warn',
272 | 'prefer-const': ['error', { destructuring: 'all' }],
273 | 'prefer-destructuring': 'off',
274 | 'prefer-numeric-literals': 'error',
275 | 'prefer-rest-params': 'error',
276 | 'prefer-spread': 'error',
277 | 'prefer-template': 'warn',
278 | 'require-yield': 'error',
279 | 'rest-spread-spacing': ['error', 'never'],
280 | // 'sort-imports': 'off',
281 | 'symbol-description': 'warn',
282 | // 'template-curly-spacing': 'off',
283 | 'yield-star-spacing': ['error', 'after'],
284 | }
285 | }
286 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | /dist
3 | /node_modules
4 | /src/assets/images/*.ico
5 | /src/assets/images/*.icns
6 | /src/build
7 | /src/resources/fonts/*.otf
8 | /src/storage
9 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 孙翛然
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 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## TODU
2 |
3 | An awesome, hackable to-do list.
4 |
5 | 
6 |
7 | [Download the latest version here](https://github.com/CyanSalt/todu/releases/latest)
8 |
9 | ### Manage your to-do
10 |
11 | * Type your to-do in editor line, then press `Enter`.
12 | * Every day when you open this app, items that undone will be move to today's list.
13 | * Add your to-do of tomorrow in the same way.
14 | * **Drag and drop** your to-do item between today's list and tomorrow.
15 | * Click the date on the right and look up history.
16 | * Add time in today's list and set an alarm clock *5 min* before it happens.
17 |
18 | ### Use different sheet
19 |
20 | * Click super button with infinity icon to toggle the sheet switcher.
21 | * Add, remove sheet, or change the sheet's title if you like.
22 | * Set it to Cycle mode by clicking the button next to the head 'Today'.
23 |
24 | ### Export your data
25 |
26 | * All of user data are placed in the folder `storage` of the app.
27 | * Edit the `sheets.json` to change the sheets' information.
28 | * Copy the content of `todo.json` or `todo-*.json` to export your data.
29 |
30 | ### HACK IT!
31 |
32 | * The messages in this app is written in English, and will be shown as the language set in your system by default. however, you can use its internal translations or translate it yourself.
33 | * Create file `translation.json` in the `storage` directory.
34 | * Type your configure like `{"@use": "en-US"}`, or customize the translation file yourself (See [All translatable texts](https://github.com/CyanSalt/todu/blob/master/src/resources/default/translation.json)).
35 |
36 | * This app is built with [Electron](https://electronjs.org/) and [VueJS](https://vuejs.org/index.html). If you are familiar with eithor of those, you can add `custom.js` to write your own code whenever the app launched. See the demo at `resources/default/custom.js`
37 |
38 | * As well as script, you can also add `custom.css` to write your stylesheets.
39 |
40 | * For getting the document layout of the app's page, you can press `Control/Cmd+Shift+I` to open the devtools panel, just like you do it in Chrome.
41 |
42 | ### License
43 |
44 | MIT
45 |
--------------------------------------------------------------------------------
/makefile.js:
--------------------------------------------------------------------------------
1 | const packager = require('electron-packager')
2 | const png2icons = require('png2icons')
3 | const path = require('path')
4 | const fs = require('fs')
5 | const app = require('./package.json')
6 |
7 | const suffix = process.platform === 'darwin' ? 'icns' : 'ico'
8 | const ICON_PATH = `src/assets/images/icon.${suffix}`
9 |
10 | // Check icon file
11 | try {
12 | fs.accessSync(ICON_PATH)
13 | } catch (error) {
14 | console.log('Generating program icon...')
15 | const folder = path.dirname(ICON_PATH)
16 | const input = fs.readFileSync(`${folder}/icon.png`)
17 | const builder = suffix === 'icns' ? png2icons.createICNS : png2icons.createICO
18 | const output = builder(input, png2icons.BICUBIC, false)
19 | fs.writeFileSync(ICON_PATH, output)
20 | }
21 |
22 | const options = {
23 | dir: '.',
24 | name: app.name,
25 | out: 'dist/',
26 | overwrite: true,
27 | asar: true,
28 | icon: ICON_PATH,
29 | ignore: [
30 | '^/(?!src|package\\.json|window\\.js)',
31 | '^/src/(components|plugins|resources|storage)($|/)',
32 | '^/src/assets/.*\\.(ico|icns)$',
33 | ],
34 | appVersion: app.executableVersion,
35 | win32metadata: {
36 | FileDescription: app.productName,
37 | OriginalFilename: `${app.name}.exe`,
38 | }
39 | }
40 |
41 | function copy(source, target) {
42 | const basename = path.basename(source)
43 | if (fs.lstatSync(source).isDirectory()) {
44 | target = path.join(target, basename)
45 | try {
46 | fs.mkdirSync(target)
47 | } catch (e) {}
48 | const entries = fs.readdirSync(source)
49 | for (const entry of entries) {
50 | copy(path.join(source, entry), target)
51 | }
52 | } else {
53 | fs.copyFileSync(source, path.join(target, basename))
54 | }
55 | }
56 |
57 | packager(options).then(appPaths => {
58 | appPaths.forEach(dir => {
59 | copy('src/resources', dir)
60 | if (dir.includes('win32')) {
61 | const manifest = `${app.name}.VisualElementsManifest.xml`
62 | fs.renameSync(`${dir}/resources/visual/${manifest}`, `${dir}/${manifest}`)
63 | }
64 | })
65 | console.log('Build finished.')
66 | }).catch(e => {
67 | console.error(e)
68 | })
69 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "todu",
3 | "version": "1.10.2",
4 | "executableVersion": "1.9.0",
5 | "productName": "TODU",
6 | "author": "CyanSalt",
7 | "description": "An awesome todo list",
8 | "main": "window.js",
9 | "scripts": {
10 | "build": "webpack --mode=production && node makefile.js",
11 | "dev": "webpack --mode=development && electron .",
12 | "lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
13 | },
14 | "repository": {
15 | "type": "git",
16 | "url": "https://github.com/CyanSalt/todu.git"
17 | },
18 | "license": "MIT",
19 | "engines": {
20 | "node": ">=8.5.0"
21 | },
22 | "devDependencies": {
23 | "css-loader": "^1.0.1",
24 | "electron": "^3.0.8",
25 | "electron-packager": "^12.2.0",
26 | "mini-css-extract-plugin": "^0.4.4",
27 | "png2icons": "^1.0.1",
28 | "vue": "^2.5.17",
29 | "vue-loader": "^15.4.2",
30 | "vue-style-loader": "^4.1.2",
31 | "vue-template-compiler": "^2.5.17",
32 | "webpack": "^4.25.1",
33 | "webpack-cli": "^3.1.2"
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/assets/fonts/icomoon.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CyanSalt/todu/dfbbd4172b82004a180a9a523fa3c38825ae4de3/src/assets/fonts/icomoon.woff
--------------------------------------------------------------------------------
/src/assets/images/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CyanSalt/todu/dfbbd4172b82004a180a9a523fa3c38825ae4de3/src/assets/images/icon.png
--------------------------------------------------------------------------------
/src/assets/locales/fr-FR.json:
--------------------------------------------------------------------------------
1 | {
2 | "Today#!1": "Aujourd'hui",
3 | "Tomorrow#!2": "Demain",
4 | "Sunday#!3": "Dimanche",
5 | "Monday#!4": "Lundi",
6 | "Tuesday#!5": "Mardi",
7 | "Wednesday#!6": "Mercredi",
8 | "Thursday#!7": "Jeudi",
9 | "Friday#!8": "Vendredi",
10 | "Saturday#!9": "Samedi",
11 | "%W, %M.%D#!10": "",
12 | "Add a to-do#!11": "Ajouter une to-do",
13 | "Yesterday#!12": "Hier",
14 | "3 days ago#!13": "Avant hier",
15 | "This %W#!14": "Ce %W",
16 | "Last %W#!15": "%W dernier",
17 | "Sunday#!16": "Dimanche",
18 | "Monday#!17": "Lundi",
19 | "Tuesday#!18": "Mardi",
20 | "Wednesday#!19": "Mercredi",
21 | "Thursday#!20": "Jeudi",
22 | "Friday#!21": "Vendredi",
23 | "Saturday#!22": "Samedi",
24 | "%D days ago#!23": "Il y a %D jours",
25 | "Long ago#!24": "Il y a longtemps",
26 | "TO-DO#!25": "À-FAIRE",
27 | "DONE#!26": "FAIT",
28 | "Previous#!27": "Précédent",
29 | "Next#!28": "Prochaine",
30 | "Upgrade to %V#!29": "Mise à jour %V",
31 | "Downloading %R#!30": "Télécharger %R",
32 | "Pausing %R#!31": "Pause %R",
33 | "Relaunch and upgrade#!32": "Relancer et améliorer",
34 | "%T today#!33": "%T aujourd'hui",
35 | "Before#!34": "Le passé"
36 | }
37 |
--------------------------------------------------------------------------------
/src/assets/locales/zh-CN.json:
--------------------------------------------------------------------------------
1 | {
2 | "Today#!1": "今天",
3 | "Tomorrow#!2": "明天",
4 | "Sunday#!3": "星期日",
5 | "Monday#!4": "星期一",
6 | "Tuesday#!5": "星期二",
7 | "Wednesday#!6": "星期三",
8 | "Thursday#!7": "星期四",
9 | "Friday#!8": "星期五",
10 | "Saturday#!9": "星期六",
11 | "%W, %M.%D#!10": "%M月%D日 %W",
12 | "Add a to-do#!11": "添加待办事项",
13 | "Yesterday#!12": "昨天",
14 | "3 days ago#!13": "前天",
15 | "This %W#!14": "本%W",
16 | "Last %W#!15": "上%W",
17 | "Sunday#!16": "周日",
18 | "Monday#!17": "周一",
19 | "Tuesday#!18": "周二",
20 | "Wednesday#!19": "周三",
21 | "Thursday#!20": "周四",
22 | "Friday#!21": "周五",
23 | "Saturday#!22": "周六",
24 | "%D days ago#!23": "%D天前",
25 | "Long ago#!24": "很久以前",
26 | "TO-DO#!25": "待办事项",
27 | "DONE#!26": "已办事项",
28 | "Previous#!27": "上一页",
29 | "Next#!28": "下一页",
30 | "Upgrade to %V#!29": "更新 %V",
31 | "Downloading %R#!30": "下载中 %R",
32 | "Pausing %R#!31": "暂停中 %R",
33 | "Relaunch and upgrade#!32": "重启以更新",
34 | "%T today#!33": "今天 %T",
35 | "Before#!34": "过去"
36 | }
37 |
--------------------------------------------------------------------------------
/src/assets/locales/zh-TW.json:
--------------------------------------------------------------------------------
1 | {
2 | "Today#!1": "今天",
3 | "Tomorrow#!2": "明天",
4 | "Sunday#!3": "星期日",
5 | "Monday#!4": "星期一",
6 | "Tuesday#!5": "星期二",
7 | "Wednesday#!6": "星期三",
8 | "Thursday#!7": "星期四",
9 | "Friday#!8": "星期五",
10 | "Saturday#!9": "星期六",
11 | "%W, %M.%D#!10": "%M月%D日 %W",
12 | "Add a to-do#!11": "添加待辦事項",
13 | "Yesterday#!12": "昨天",
14 | "3 days ago#!13": "前天",
15 | "This %W#!14": "本%W",
16 | "Last %W#!15": "上%W",
17 | "Sunday#!16": "周日",
18 | "Monday#!17": "周一",
19 | "Tuesday#!18": "周二",
20 | "Wednesday#!19": "周三",
21 | "Thursday#!20": "周四",
22 | "Friday#!21": "周五",
23 | "Saturday#!22": "周六",
24 | "%D days ago#!23": "%D天前",
25 | "Long ago#!24": "很久以前",
26 | "TO-DO#!25": "待辦事項",
27 | "DONE#!26": "已辦事項",
28 | "Previous#!27": "上一頁",
29 | "Next#!28": "下一頁",
30 | "Upgrade to %V#!29": "更新 %V",
31 | "Downloading %R#!30": "下載中 %R",
32 | "Pausing %R#!31": "暫停中 %R",
33 | "Relaunch and upgrade#!32": "重啓以更新",
34 | "%T today#!33": "今天 %T",
35 | "Before#!34": "過去"
36 | }
37 |
--------------------------------------------------------------------------------
/src/components/app-updater.vue:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
29 |