diff --git a/custom/conf/app.ini.sample b/custom/conf/app.ini.sample index fee5f0b06..2d3aab148 100644 --- a/custom/conf/app.ini.sample +++ b/custom/conf/app.ini.sample @@ -17,7 +17,7 @@ SCRIPT_TYPE = bash ; DETECTED_CHARSETS_ORDER tie-break order for detected charsets. ; If the charsets have equal confidence, tie-breaking will be done by order in this list ; with charsets earlier in the list chosen in preference to those later. -; Adding "defaults" will place the unused charsets at that position. +; Adding "defaults" will place the unused charsets at that position. DETECTED_CHARSETS_ORDER=UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE, ISO-8859, windows-1252, ISO-8859, windows-1250, ISO-8859, ISO-8859, ISO-8859, windows-1253, ISO-8859, windows-1255, ISO-8859, windows-1251, windows-1256, KOI8-R, ISO-8859, windows-1254, Shift_JIS, GB18030, EUC-JP, EUC-KR, Big5, ISO-2022, ISO-2022, ISO-2022, IBM424_rtl, IBM424_ltr, IBM420_rtl, IBM420_ltr ; Default ANSI charset to override non-UTF-8 charsets to ANSI_CHARSET = @@ -634,8 +634,8 @@ SUBJECT_PREFIX = ; Mail server ; Gmail: smtp.gmail.com:587 ; QQ: smtp.qq.com:465 -; Using STARTTLS on port 587 is recommended per RFC 6409. -; Note, if the port ends with "465", SMTPS will be used. +; Using STARTTLS on port 587 is recommended per RFC 6409. +; Note, if the port ends with "465", SMTPS will be used. HOST = ; Disable HELO operation when hostnames are different. DISABLE_HELO = @@ -950,32 +950,6 @@ MAX_TOKEN_LENGTH=32767 LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,uk-UA,ja-JP,es-ES,pt-BR,pt-PT,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,Українська,日本語,español,português do Brasil,Português de Portugal,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어 -; Used for datetimepicker -[i18n.datelang] -en-US = en -zh-CN = zh -zh-HK = zh-HK -zh-TW = zh-TW -de-DE = de -fr-FR = fr -nl-NL = nl -lv-LV = lv -ru-RU = ru -uk-UA = uk -ja-JP = ja -es-ES = es -pt-BR = pt-BR -pt-PT = pt -pl-PL = pl -bg-BG = bg -it-IT = it -fi-FI = fi -tr-TR = tr -cs-CZ = cs-CZ -sr-SP = sr -sv-SE = sv -ko-KR = ko - [U2F] ; NOTE: THE DEFAULT VALUES HERE WILL NEED TO BE CHANGED ; Two Factor authentication with security keys diff --git a/docs/content/doc/advanced/config-cheat-sheet.en-us.md b/docs/content/doc/advanced/config-cheat-sheet.en-us.md index a7ac5a4cc..5cc148f41 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.en-us.md +++ b/docs/content/doc/advanced/config-cheat-sheet.en-us.md @@ -614,32 +614,6 @@ NB: You must `REDIRECT_MACARON_LOG` and have `DISABLE_ROUTER_LOG` set to `false` - `LANGS`: **en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pt-PT,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR**: List of locales shown in language selector - `NAMES`: **English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,Português de Portugal,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어**: Visible names corresponding to the locales -### i18n - Datepicker Language (`i18n.datelang`) -Maps locales to the languages used by the datepicker plugin - -- `en-US`: **en** -- `zh-CN`: **zh** -- `zh-HK`: **zh-HK** -- `zh-TW`: **zh-TW** -- `de-DE`: **de** -- `fr-FR`: **fr** -- `nl-NL`: **nl** -- `lv-LV`: **lv** -- `ru-RU`: **ru** -- `ja-JP`: **ja** -- `es-ES`: **es** -- `pt-BR`: **pt-BR** -- `pt-PT`: **pt** -- `pl-PL`: **pl** -- `bg-BG`: **bg** -- `it-IT`: **it** -- `fi-FI`: **fi** -- `tr-TR`: **tr** -- `cs-CZ`: **cs-CZ** -- `sr-SP`: **sr** -- `sv-SE`: **sv** -- `ko-KR`: **ko** - ## U2F (`U2F`) - `APP_ID`: **`ROOT_URL`**: Declares the facet of the application. Requires HTTPS. - `TRUSTED_FACETS`: List of additional facets which are trusted. This is not support by all browsers. diff --git a/docs/content/page/index.en-us.md b/docs/content/page/index.en-us.md index 92f8e2645..c9dd1ab3c 100644 --- a/docs/content/page/index.en-us.md +++ b/docs/content/page/index.en-us.md @@ -276,7 +276,6 @@ Windows, on architectures like amd64, i386, ARM, PowerPC, and others. * [Highlight](https://highlightjs.org/) * [Clipboard](https://zenorocha.github.io/clipboard.js/) * [CodeMirror](https://codemirror.net/) - * [jQuery Date Time Picker](https://github.com/xdan/datetimepicker) * [jQuery MiniColors](https://github.com/claviska/jquery-minicolors) * Database drivers: * [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) diff --git a/docs/content/page/index.fr-fr.md b/docs/content/page/index.fr-fr.md index c0f47f725..a6109b441 100755 --- a/docs/content/page/index.fr-fr.md +++ b/docs/content/page/index.fr-fr.md @@ -264,7 +264,6 @@ Le but de ce projet est de fournir de la manière la plus simple, la plus rapide * [Highlight](https://highlightjs.org/) * [Clipboard](https://zenorocha.github.io/clipboard.js/) * [CodeMirror](https://codemirror.net/) - * [jQuery Date Time Picker](https://github.com/xdan/datetimepicker) * [jQuery MiniColors](https://github.com/claviska/jquery-minicolors) * Connecteurs de base de données : * [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) diff --git a/docs/content/page/index.zh-cn.md b/docs/content/page/index.zh-cn.md index cdebacc86..cf137a1fc 100644 --- a/docs/content/page/index.zh-cn.md +++ b/docs/content/page/index.zh-cn.md @@ -57,7 +57,6 @@ Gitea的首要目标是创建一个极易安装,运行非常快速,安装和 * [Highlight](https://highlightjs.org/) * [Clipboard](https://zenorocha.github.io/clipboard.js/) * [CodeMirror](https://codemirror.net/) - * [jQuery Date Time Picker](https://github.com/xdan/datetimepicker) * [jQuery MiniColors](https://github.com/claviska/jquery-minicolors) * 数据库驱动: * [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) diff --git a/docs/content/page/index.zh-tw.md b/docs/content/page/index.zh-tw.md index 6eec81019..5ea9b6796 100644 --- a/docs/content/page/index.zh-tw.md +++ b/docs/content/page/index.zh-tw.md @@ -57,7 +57,6 @@ Gitea 的首要目標是建立一個容易安裝,運行快速,安装和使 * [Highlight](https://highlightjs.org/) * [Clipboard](https://zenorocha.github.io/clipboard.js/) * [CodeMirror](https://codemirror.net/) - * [jQuery Date Time Picker](https://github.com/xdan/datetimepicker) * [jQuery MiniColors](https://github.com/claviska/jquery-minicolors) * 資料庫: * [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 91c3c4cf6..8efc832f9 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -367,9 +367,8 @@ var ( } // I18n settings - Langs []string - Names []string - dateLangs map[string]string + Langs []string + Names []string // Highlight settings are loaded in modules/template/highlight.go @@ -394,15 +393,6 @@ var ( UILocation = time.Local ) -// DateLang transforms standard language locale name to corresponding value in datetime plugin. -func DateLang(lang string) string { - name, ok := dateLangs[lang] - if ok { - return name - } - return "en" -} - func getAppPath() (string, error) { var appPath string var err error @@ -1012,7 +1002,6 @@ func NewContext() { "español", "português do Brasil", "Português de Portugal", "polski", "български", "italiano", "suomi", "Türkçe", "čeština", "српски", "svenska", "한국어"} } - dateLangs = Cfg.Section("i18n.datelang").KeysHash() ShowFooterBranding = Cfg.Section("other").Key("SHOW_FOOTER_BRANDING").MustBool(false) ShowFooterVersion = Cfg.Section("other").Key("SHOW_FOOTER_VERSION").MustBool(true) diff --git a/package-lock.json b/package-lock.json index cbe7fcde5..294490357 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7157,22 +7157,6 @@ "resolved": "https://registry.npmjs.org/import-regex/-/import-regex-1.1.0.tgz", "integrity": "sha1-pVxS5McFx2XKIQ6SQqBrvMiqf2Y=" }, - "imports-loader": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/imports-loader/-/imports-loader-0.8.0.tgz", - "integrity": "sha512-kXWL7Scp8KQ4552ZcdVTeaQCZSLW+e6nJfp3cwUMB673T7Hr98Xjx5JK+ql7ADlJUvj1JS5O01RLbKoutN5QDQ==", - "requires": { - "loader-utils": "^1.0.2", - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" - } - } - }, "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", @@ -7745,21 +7729,6 @@ "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz", "integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg==" }, - "jquery-datetimepicker": { - "version": "2.5.21", - "resolved": "https://registry.npmjs.org/jquery-datetimepicker/-/jquery-datetimepicker-2.5.21.tgz", - "integrity": "sha512-wDTpZ4f1PWd1XGaIIE0n6jLynlm+akBJ7/NjaB1bk2UJSS593CHJPZ3+FNEXoyvNVUeBlBC0oX6WTfCyfUhX/w==", - "requires": { - "jquery": ">= 1.7.2", - "jquery-mousewheel": ">= 3.1.13", - "php-date-formatter": "^1.3.4" - } - }, - "jquery-mousewheel": { - "version": "3.1.13", - "resolved": "https://registry.npmjs.org/jquery-mousewheel/-/jquery-mousewheel-3.1.13.tgz", - "integrity": "sha1-BvAzXxbjU6aV5yBr9QUDy1I6buU=" - }, "jquery.are-you-sure": { "version": "1.9.0", "resolved": "https://registry.npmjs.org/jquery.are-you-sure/-/jquery.are-you-sure-1.9.0.tgz", @@ -9845,11 +9814,6 @@ "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" }, - "php-date-formatter": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/php-date-formatter/-/php-date-formatter-1.3.4.tgz", - "integrity": "sha1-CaFa4HZroL6xkAwnwewxnvLkVj4=" - }, "picomatch": { "version": "2.2.2", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", diff --git a/package.json b/package.json index fac0dd2cf..61df27144 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,7 @@ "file-loader": "6.0.0", "fomantic-ui": "2.8.5", "highlight.js": "10.0.3", - "imports-loader": "0.8.0", "jquery": "3.5.1", - "jquery-datetimepicker": "2.5.21", "jquery.are-you-sure": "1.9.0", "less-loader": "6.1.0", "mini-css-extract-plugin": "0.9.0", diff --git a/public/vendor/librejs.html b/public/vendor/librejs.html index 37c25159a..4397f8a64 100644 --- a/public/vendor/librejs.html +++ b/public/vendor/librejs.html @@ -60,11 +60,6 @@