diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 9cad54db99..34187149e4 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -761,6 +761,9 @@ middle: "中" low: "低" emailNotConfiguredWarning: "メールアドレスの設定がされていません。" ratio: "比率" +customCss: "カスタムCSS" +customCssWarn: "この設定は必ず知識のある方が行ってください。不適切な設定を行うとクライアントが正常に使用できなくなる恐れがあります。" +global: "グローバル" _ad: back: "戻る" diff --git a/package.json b/package.json index 088c3d6cd3..a9a7160328 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "lodash": "^4.17.21" }, "dependencies": { - "@babel/plugin-transform-runtime": "7.14.3", + "@babel/plugin-transform-runtime": "7.14.5", "@elastic/elasticsearch": "7.11.0", "@koa/cors": "3.1.0", "@koa/multer": "3.0.0", @@ -44,94 +44,94 @@ "@sinonjs/fake-timers": "7.1.2", "@syuilo/aiscript": "0.11.1", "@types/bcryptjs": "2.4.2", - "@types/bull": "3.15.1", + "@types/bull": "3.15.2", "@types/cbor": "6.0.0", "@types/dateformat": "3.0.1", "@types/escape-regexp": "0.0.0", - "@types/glob": "7.1.3", - "@types/gulp": "4.0.8", - "@types/gulp-rename": "2.0.0", - "@types/is-url": "1.2.29", - "@types/js-yaml": "4.0.1", - "@types/jsdom": "16.2.10", - "@types/jsonld": "1.5.5", - "@types/katex": "0.11.0", - "@types/koa": "2.13.3", - "@types/koa-bodyparser": "4.3.1", - "@types/koa-cors": "0.0.0", - "@types/koa-favicon": "2.0.19", + "@types/glob": "7.1.4", + "@types/gulp": "4.0.9", + "@types/gulp-rename": "2.0.1", + "@types/is-url": "1.2.30", + "@types/js-yaml": "4.0.2", + "@types/jsdom": "16.2.13", + "@types/jsonld": "1.5.6", + "@types/katex": "0.11.1", + "@types/koa": "2.13.4", + "@types/koa-bodyparser": "4.3.2", + "@types/koa-cors": "0.0.1", + "@types/koa-favicon": "2.0.21", "@types/koa-logger": "3.1.1", "@types/koa-mount": "4.0.0", - "@types/koa-send": "4.1.2", + "@types/koa-send": "4.1.3", "@types/koa-views": "7.0.0", - "@types/koa__cors": "3.0.2", - "@types/koa__multer": "2.0.2", - "@types/koa__router": "8.0.4", - "@types/markdown-it": "12.0.2", - "@types/matter-js": "0.14.12", - "@types/mocha": "8.2.2", - "@types/node": "15.12.2", - "@types/node-fetch": "2.5.10", - "@types/nodemailer": "6.4.2", + "@types/koa__cors": "3.0.3", + "@types/koa__multer": "2.0.3", + "@types/koa__router": "8.0.7", + "@types/markdown-it": "12.0.3", + "@types/matter-js": "0.17.3", + "@types/mocha": "8.2.3", + "@types/node": "16.3.3", + "@types/node-fetch": "2.5.11", + "@types/nodemailer": "6.4.4", "@types/nprogress": "0.2.0", "@types/oauth": "0.9.1", - "@types/parse5": "6.0.0", + "@types/parse5": "6.0.1", "@types/parsimmon": "1.10.6", - "@types/portscanner": "2.1.0", - "@types/pug": "2.0.4", + "@types/portscanner": "2.1.1", + "@types/pug": "2.0.5", "@types/punycode": "2.1.0", - "@types/qrcode": "1.4.0", + "@types/qrcode": "1.4.1", "@types/random-seed": "0.3.3", - "@types/ratelimiter": "3.4.1", - "@types/redis": "2.8.29", - "@types/rename": "1.0.3", + "@types/ratelimiter": "3.4.2", + "@types/redis": "2.8.31", + "@types/rename": "1.0.4", "@types/request-stats": "3.0.0", - "@types/rimraf": "3.0.0", + "@types/rimraf": "3.0.1", "@types/seedrandom": "2.4.28", - "@types/sharp": "0.28.3", - "@types/sinonjs__fake-timers": "6.0.2", - "@types/speakeasy": "2.0.5", + "@types/sharp": "0.28.4", + "@types/sinonjs__fake-timers": "6.0.3", + "@types/speakeasy": "2.0.6", "@types/throttle-debounce": "2.1.0", - "@types/tinycolor2": "1.4.2", - "@types/tmp": "0.2.0", - "@types/uuid": "8.3.0", - "@types/web-push": "3.3.0", + "@types/tinycolor2": "1.4.3", + "@types/tmp": "0.2.1", + "@types/uuid": "8.3.1", + "@types/web-push": "3.3.2", "@types/webpack": "5.28.0", "@types/webpack-stream": "3.2.12", - "@types/websocket": "1.0.2", - "@types/ws": "7.4.4", - "@typescript-eslint/parser": "4.26.1", - "@vue/compiler-sfc": "3.1.1", + "@types/websocket": "1.0.3", + "@types/ws": "7.4.6", + "@typescript-eslint/parser": "4.28.3", + "@vue/compiler-sfc": "3.1.5", "abort-controller": "3.0.0", - "apexcharts": "3.27.1", + "apexcharts": "3.27.2", "autobind-decorator": "2.4.0", "autosize": "4.0.4", "autwh": "0.1.0", - "aws-sdk": "2.923.0", + "aws-sdk": "2.948.0", "bcryptjs": "2.4.3", "blurhash": "1.1.3", - "broadcast-channel": "3.6.0", - "bull": "3.22.7", + "broadcast-channel": "3.7.0", + "bull": "3.26.0", "cafy": "15.2.1", - "cbor": "7.0.5", + "cbor": "7.0.6", "chalk": "4.1.1", "chart.js": "2.9.4", "cli-highlight": "2.1.11", "commander": "7.2.0", "concurrently": "6.2.0", "content-disposition": "0.5.3", - "core-js": "3.14.0", + "core-js": "3.15.2", "crc-32": "1.2.0", - "css-loader": "5.2.6", - "cssnano": "5.0.5", + "css-loader": "6.0.0", + "cssnano": "5.0.6", "dateformat": "4.5.1", "diskusage": "1.1.3", "escape-regexp": "0.0.1", - "eslint": "7.28.0", - "eslint-plugin-vue": "7.10.0", + "eslint": "7.30.0", + "eslint-plugin-vue": "7.13.0", "eventemitter3": "4.0.7", "feed": "4.2.2", - "file-type": "16.5.0", + "file-type": "16.5.1", "fluent-ffmpeg": "2.1.2", "glob": "7.1.7", "got": "11.8.2", @@ -154,7 +154,7 @@ "jsdom": "16.6.0", "json5": "2.2.0", "json5-loader": "4.0.1", - "jsonld": "4.0.1", + "jsonld": "5.2.0", "jsrsasign": "8.0.20", "katex": "0.13.11", "koa": "2.13.1", @@ -168,26 +168,26 @@ "koa-views": "7.0.1", "langmap": "0.0.16", "lookup-dns-cache": "2.1.0", - "markdown-it": "12.0.6", + "markdown-it": "12.1.0", "markdown-it-anchor": "7.1.0", "matter-js": "0.17.1", - "mfm-js": "0.18.0", - "misskey-js": "0.0.4", + "mfm-js": "0.19.0", + "misskey-js": "0.0.6", "mocha": "8.4.0", "moji": "0.5.1", "ms": "2.1.3", "multer": "1.4.2", "nested-property": "4.0.0", "node-fetch": "2.6.1", - "nodemailer": "6.6.1", + "nodemailer": "6.6.3", "object-assign-deep": "0.4.0", "os-utils": "0.0.14", "parse5": "6.0.1", "pg": "8.6.0", "portscanner": "2.2.0", - "postcss": "8.3.0", - "postcss-loader": "5.3.0", - "prismjs": "1.23.0", + "postcss": "8.3.5", + "postcss-loader": "6.1.1", + "prismjs": "1.24.1", "probe-image-size": "7.2.1", "promise-limit": "2.7.0", "promise-sequential": "1.1.1", @@ -209,16 +209,16 @@ "rimraf": "3.0.2", "rndstr": "1.0.0", "s-age": "1.1.2", - "sass": "1.34.1", - "sass-loader": "12.0.0", + "sass": "1.35.2", + "sass-loader": "12.1.0", "seedrandom": "3.0.5", "sharp": "0.28.3", "speakeasy": "2.0.0", "stringz": "2.1.0", - "style-loader": "2.0.0", + "style-loader": "3.1.0", "summaly": "2.4.0", "syslog-pro": "1.0.0", - "systeminformation": "5.7.4", + "systeminformation": "5.7.7", "syuilo-password-strength": "0.0.1", "textarea-caret": "3.1.0", "three": "0.117.1", @@ -226,32 +226,32 @@ "tinycolor2": "1.4.2", "tmp": "0.2.1", "ts-loader": "9.2.3", - "ts-node": "10.0.0", - "tsc-alias": "1.3.2", - "tsconfig-paths": "3.9.0", + "ts-node": "10.1.0", + "tsc-alias": "1.3.7", + "tsconfig-paths": "3.10.1", "tslint": "6.1.3", "tslint-sonarts": "1.9.0", "twemoji-parser": "13.1.0", "typeorm": "0.2.32", - "typescript": "4.3.2", + "typescript": "4.3.5", "ulid": "2.3.0", "uuid": "8.3.2", "v-debounce": "0.1.2", "vanilla-tilt": "1.7.0", - "vue": "3.1.1", + "vue": "3.1.5", "vue-color": "2.8.1", - "vue-json-pretty": "1.7.1", - "vue-loader": "16.1.2", + "vue-json-pretty": "1.8.1", + "vue-loader": "16.3.1", "vue-prism-editor": "2.0.0-alpha.2", "vue-router": "4.0.5", "vue-style-loader": "4.1.3", "vue-svg-loader": "0.17.0-beta.2", "vuedraggable": "4.0.1", - "web-push": "3.4.4", - "webpack": "5.38.1", + "web-push": "3.4.5", + "webpack": "5.45.1", "webpack-cli": "4.7.2", "websocket": "1.0.34", - "ws": "7.4.6", + "ws": "7.5.3", "xev": "2.0.1" }, "devDependencies": { diff --git a/src/client/account.ts b/src/client/account.ts index a209761ab7..f033bd3959 100644 --- a/src/client/account.ts +++ b/src/client/account.ts @@ -9,6 +9,8 @@ import { unisonReload, reloadChannel } from '@client/scripts/unison-reload'; type Account = { id: string; token: string; + isModerator: boolean; + isAdmin: boolean; }; const data = localStorage.getItem('account'); diff --git a/src/client/components/media-list.vue b/src/client/components/media-list.vue index 1b85578652..71767a0f9f 100644 --- a/src/client/components/media-list.vue +++ b/src/client/components/media-list.vue @@ -1,8 +1,8 @@