├── .github └── workflows │ ├── build.sh │ ├── check.yml │ └── release.yml ├── LICENSE ├── Makefile ├── README.md ├── README_ZH.md ├── htdocs └── luci-static │ └── resources │ └── view │ └── argon-config.js ├── po ├── es │ └── argon-config.po ├── templates │ └── argon-config.pot ├── zh_Hans │ └── argon-config.po └── zh_Hant │ └── argon-config.po └── root ├── etc ├── config │ └── argon └── uci-defaults │ └── luci-argon-config └── usr ├── libexec └── rpcd │ └── luci.argon └── share ├── luci └── menu.d │ └── luci-app-argon-config.json └── rpcd └── acl.d └── luci-app-argon-config.json /.github/workflows/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | sed -i 's/git\.openwrt\.org\/project\/luci/github\.com\/openwrt\/luci/g' ./feeds.conf.default 4 | ./scripts/feeds update luci 5 | ./scripts/feeds install luci 6 | mv ./bin/luci-app-argon-config ./package/ 7 | make defconfig 8 | make package/luci-app-argon-config/compile V=s -j$(nproc) BUILD_LOG=1 9 | 10 | tar -cJf logs.tar.xz logs 11 | mv logs.tar.xz bin 12 | -------------------------------------------------------------------------------- /.github/workflows/check.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | tags-ignore: 8 | - 'release-*' 9 | paths: 10 | - 'luci-app-argon-config/**' 11 | pull_request: 12 | branches: 13 | - master 14 | 15 | jobs: 16 | build: 17 | name: Build the IPK 18 | runs-on: ubuntu-latest 19 | steps: 20 | - name: Checkout 21 | uses: actions/checkout@master 22 | - name: Prepare 23 | run: | 24 | mkdir -p bin/luci-app-argon-config 25 | cp -rf ./luasrc ./po ./root ./Makefile ./bin/luci-app-argon-config 26 | - name: Docker Build 27 | run: | 28 | docker pull openwrt/sdk 29 | docker run --rm -u root -v "$(pwd)"/bin/:/home/build/openwrt/bin -v ${{ github.workspace }}/.github/workflows:/home/build/workflows openwrt/sdk /bin/sh /home/build/workflows/build.sh 30 | - name: Upload app 31 | uses: actions/upload-artifact@v3 32 | with: 33 | name: luci-app-argon-config 34 | path: ./bin/packages/x86_64/base/*argon-config* 35 | if-no-files-found: error 36 | - name: Upload Log 37 | if: ${{ always() }} 38 | uses: actions/upload-artifact@v3 39 | with: 40 | name: buildlog 41 | path: bin/logs.tar.xz 42 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: 6 | - 'release-*' 7 | 8 | jobs: 9 | build: 10 | name: Build the IPK 11 | runs-on: ubuntu-latest 12 | steps: 13 | - name: Checkout 14 | uses: actions/checkout@master 15 | - name: Prepare 16 | run: | 17 | mkdir -p bin/luci-app-argon-config 18 | cp -rf ./luasrc ./po ./root ./Makefile ./bin/luci-app-argon-config 19 | - name: Docker Build 20 | run: | 21 | docker pull openwrt/sdk 22 | docker run --rm -u root -v "$(pwd)"/bin/:/home/build/openwrt/bin -v ${{ github.workspace }}/.github/workflows:/home/build/workflows openwrt/sdk /bin/sh /home/build/workflows/build.sh 23 | - name: Release 24 | env: 25 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 26 | run: | 27 | set -x 28 | assets=() 29 | for asset in ./bin/packages/x86_64/base/*argon-config*.ipk; do 30 | assets+=("-a" "$asset") 31 | done 32 | tag_name=$(basename ${{github.ref}}) 33 | hub release create -p "${assets[@]}" -m "$tag_name" "$tag_name" 34 | - name: Upload Log 35 | if: ${{ always() }} 36 | uses: actions/upload-artifact@v3 37 | with: 38 | name: buildlog 39 | path: bin/logs.tar.xz 40 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=luci-app-argon-config 4 | PKG_VERSION:=1.0 5 | PKG_RELEASE:=20230608 6 | 7 | PKG_MAINTAINER:=jerrykuku 8 | 9 | LUCI_TITLE:=LuCI app for Argon theme configuration 10 | LUCI_PKGARCH:=all 11 | LUCI_DEPENDS:=+luci-theme-argon 12 | 13 | define Package/$(PKG_NAME)/conffiles 14 | /etc/config/argon 15 | endef 16 | 17 | include $(TOPDIR)/feeds/luci/luci.mk 18 | 19 | # call BuildPackage - OpenWrt buildroot signature 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 10 | 11 | [license]: /LICENSE 12 | [license-badge]: https://img.shields.io/github/license/jerrykuku/luci-app-argon-config?style=flat-square&a=1 13 | [prs]: https://github.com/jerrykuku/luci-app-argon-config/pulls 14 | [prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square 15 | [issues]: https://github.com/jerrykuku/luci-app-argon-config/issues/new 16 | [issues-badge]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg?style=flat-square 17 | [release]: https://github.com/jerrykuku/luci-app-argon-config/releases 18 | [release-badge]: https://img.shields.io/github/v/release/jerrykuku/luci-app-argon-config?include_prereleases&style=flat-square 19 | [download]: https://github.com/jerrykuku/luci-app-argon-config/releases 20 | [download-badge]: https://img.shields.io/github/downloads/jerrykuku/luci-app-argon-config/total?style=flat-square 21 | [contact]: https://t.me/jerryk6 22 | [contact-badge]: https://img.shields.io/badge/Contact-telegram-blue?style=flat-square 23 | [en-us-link]: /README.md 24 | [zh-cn-link]: /README_ZH.md 25 | [en-us-release-log]: /RELEASE.md 26 | [zh-cn-release-log]: /RELEASE_ZH.md 27 | [config-link]: https://github.com/jerrykuku/luci-app-argon-config/releases 28 | [lede]: https://github.com/coolsnowwolf/lede 29 | [official]: https://github.com/openwrt/openwrt 30 | [immortalwrt]: https://github.com/immortalwrt/immortalwrt 31 | 32 |
33 | 34 | 35 | # Argon Theme Config Plugin 36 | 37 | You can set the blur and transparency of the login page of argon theme, 38 | 39 | and manage the background pictures and videos. 40 | 41 | [![license][license-badge]][license] 42 | [![prs][prs-badge]][prs] 43 | [![issues][issues-badge]][issues] 44 | [![release][release-badge]][release] 45 | [![download][download-badge]][download] 46 | [![contact][contact-badge]][contact] 47 | 48 | **English** | 49 | [简体中文][zh-cn-link] 50 | 51 | 52 |
53 | 54 | ## Branch Introduction 55 | 56 | There are currently two main branches that are adapted to different versions of the **OpenWrt** source code. 57 | The table below will provide a detailed introduction: 58 | 59 | | Branch | Version | Description | Matching source | 60 | | ------ | ------- | ---------------------------------- | --------------------------------------------------------- | 61 | | master | v1.x.x | Support the latest version of LuCI | [Official OpenWrt][official] • [ImmortalWrt][immortalwrt] | 62 | | 18.06 | v0.9.x | Support the 18.06 version of LuCI | [Lean's LEDE][lede] | 63 | 64 | ## Getting started 65 | 66 | ### Build for Lean's LEDE project 67 | 68 | ```bash 69 | cd lede/package/lean 70 | rm -rf luci-app-argon-config # if have 71 | git clone -b 18.06 https://github.com/jerrykuku/luci-app-argon-config.git luci-app-argon-config 72 | make menuconfig #choose LUCI->Application->Luci-app-argon-config 73 | make -j1 V=s 74 | ``` 75 | 76 | ### Build for OpenWrt official SnapShots and ImmortalWrt 77 | 78 | ```bash 79 | cd openwrt/package 80 | git clone https://github.com/jerrykuku/luci-app-argon-config.git 81 | make menuconfig #choose LUCI->Application->Luci-app-argon-config 82 | make -j1 V=s 83 | ``` 84 | 85 | ## Contributors 86 | 87 | 88 | 89 | 90 | 91 | Made with [contrib.rocks](https://contrib.rocks). 92 | 93 | ## Related Projects 94 | 95 | - [luci-theme-argon](https://github.com/jerrykuku/luci-theme-argon): Argon theme 96 | - [openwrt-package](https://github.com/jerrykuku/openwrt-package): My OpenWrt package 97 | - [CasaOS](https://github.com/IceWhaleTech/CasaOS): A simple, easy-to-use, elegant open-source Personal Cloud system (My current main project) 98 | -------------------------------------------------------------------------------- /README_ZH.md: -------------------------------------------------------------------------------- 1 | 10 | 11 | [license]: /LICENSE 12 | [license-badge]: https://img.shields.io/github/license/jerrykuku/luci-app-argon-config?style=flat-square&a=1 13 | [prs]: https://github.com/jerrykuku/luci-app-argon-config/pulls 14 | [prs-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square 15 | [issues]: https://github.com/jerrykuku/luci-app-argon-config/issues/new 16 | [issues-badge]: https://img.shields.io/badge/Issues-welcome-brightgreen.svg?style=flat-square 17 | [release]: https://github.com/jerrykuku/luci-app-argon-config/releases 18 | [release-badge]: https://img.shields.io/github/v/release/jerrykuku/luci-app-argon-config?include_prereleases&style=flat-square 19 | [download]: https://github.com/jerrykuku/luci-app-argon-config/releases 20 | [download-badge]: https://img.shields.io/github/downloads/jerrykuku/luci-app-argon-config/total?style=flat-square 21 | [contact]: https://t.me/jerryk6 22 | [contact-badge]: https://img.shields.io/badge/Contact-telegram-blue?style=flat-square 23 | [en-us-link]: /README.md 24 | [zh-cn-link]: /README_ZH.md 25 | [en-us-release-log]: /RELEASE.md 26 | [zh-cn-release-log]: /RELEASE_ZH.md 27 | [config-link]: https://github.com/jerrykuku/luci-app-argon-config/releases 28 | [lede]: https://github.com/coolsnowwolf/lede 29 | [official]: https://github.com/openwrt/openwrt 30 | [immortalwrt]: https://github.com/immortalwrt/immortalwrt 31 | 32 |
33 | 34 | 35 | # Argon 主题设置插件 36 | 37 | 您可以设置 Argon 主题登录页面的模糊度和透明度,并管理背景图片和视频。 38 | 39 | [![license][license-badge]][license] 40 | [![prs][prs-badge]][prs] 41 | [![issues][issues-badge]][issues] 42 | [![release][release-badge]][release] 43 | [![download][download-badge]][download] 44 | [![contact][contact-badge]][contact] 45 | 46 | [Engilish][en-us-link] | 47 | **简体中文** 48 | 49 | 50 |
51 | 52 | ## Branch Introduction 53 | 54 | 目前有两个主要的分支,适应于不同版本的**OpenWrt**源代码。 55 | 下表为详细的介绍: 56 | 57 | 58 | | 分支 | 版本 | 介绍 | 匹配源码 | 59 | | ------ | ------ | --------------------------- | ----------------------------------------------------- | 60 | | master | v1.x.x | 支持最新和比较新版本的 LuCI | [官方 OpenWrt][official] • [ImmortalWrt][immortalwrt] | 61 | | 18.06 | v0.9.x | 支持 18.06 版本的 LuCI | [Lean's LEDE][lede] | 62 | 63 | ## G快速开始 64 | 65 | ### 使用 Lean's LEDE 构建 66 | 67 | ```bash 68 | cd lede/package/lean 69 | rm -rf luci-app-argon-config # if have 70 | git clone -b 18.06 https://github.com/jerrykuku/luci-app-argon-config.git luci-app-argon-config 71 | make menuconfig #choose LUCI->Application->Luci-app-argon-config 72 | make -j1 V=s 73 | ``` 74 | 75 | ### 使用官方 OpenWrt SnapShots 和 ImmortalWrt 构建 76 | 77 | ```bash 78 | cd openwrt/package 79 | git clone https://github.com/jerrykuku/luci-app-argon-config.git 80 | make menuconfig #choose LUCI->Application->Luci-app-argon-config 81 | make -j1 V=s 82 | ``` 83 | 84 | ## 贡献者 85 | 86 | 87 | 88 | 89 | 90 | Made with [contrib.rocks](https://contrib.rocks). 91 | 92 | ## 相关项目 93 | 94 | - [luci-theme-argon](https://github.com/jerrykuku/luci-theme-argon): Argon theme 95 | - [openwrt-package](https://github.com/jerrykuku/openwrt-package): My OpenWrt package 96 | - [CasaOS](https://github.com/IceWhaleTech/CasaOS): A simple, easy-to-use, elegant open-source Personal Cloud system (My current main project) 97 | -------------------------------------------------------------------------------- /htdocs/luci-static/resources/view/argon-config.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 'require form'; 3 | 'require fs'; 4 | 'require rpc'; 5 | 'require uci'; 6 | 'require ui'; 7 | 'require view'; 8 | 9 | var callAvailSpace = rpc.declare({ 10 | object: 'luci.argon', 11 | method: 'avail' 12 | }); 13 | 14 | var callRemoveArgon = rpc.declare({ 15 | object: 'luci.argon', 16 | method: 'remove', 17 | params: ['filename'], 18 | expect: { '': {} } 19 | }); 20 | 21 | var callRenameArgon = rpc.declare({ 22 | object: 'luci.argon', 23 | method: 'rename', 24 | params: ['newname'], 25 | expect: { '': {} } 26 | }); 27 | 28 | var bg_path = '/www/luci-static/argon/background/'; 29 | 30 | var trans_set = [0, 0.1, 0.2, 0.3, 0.4, 31 | 0.5, 0.6, 0.7, 0.8, 0.9, 1 ]; 32 | 33 | return view.extend({ 34 | load: function() { 35 | return Promise.all([ 36 | uci.load('argon'), 37 | L.resolveDefault(callAvailSpace(), {}), 38 | L.resolveDefault(fs.list(bg_path), {}) 39 | ]); 40 | }, 41 | 42 | render: function(data) { 43 | var m, s, o; 44 | 45 | m = new form.Map('argon', _('Argon theme configuration'), 46 | _('Here you can set the blur and transparency of the login page of argon theme, and manage the background pictures and videos. Chrome is recommended.')); 47 | 48 | s = m.section(form.TypedSection, 'global', _('Theme configuration')); 49 | s.addremove = false; 50 | s.anonymous = true; 51 | 52 | o = s.option(form.ListValue, 'online_wallpaper', _('Wallpaper source')); 53 | o.value('none', _('Built-in')); 54 | o.value('bing', _('Bing')); 55 | o.value('unsplash', _('Unsplash')); 56 | o.value('wallhaven', _('Wallhaven')); 57 | o.default = 'bing'; 58 | o.rmempty = false; 59 | 60 | o = s.option(form.ListValue, 'mode', _('Theme mode')); 61 | o.value('normal', _('Follow system')); 62 | o.value('light', _('Light mode')); 63 | o.value('dark', _('Dark mode')); 64 | o.default = 'normal'; 65 | o.rmempty = false; 66 | 67 | o = s.option(form.Value, 'primary', _('[Light mode] Primary Color'), _('A HEX color (default: #5e72e4).')) 68 | o.default = '#5e72e4'; 69 | o.rmempty = false; 70 | o.validate = function(section_id, value) { 71 | if (section_id) 72 | return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(value) || 73 | _('Expecting: %s').format(_('valid HEX color value')); 74 | return true; 75 | } 76 | 77 | o = s.option(form.ListValue, 'transparency', _('[Light mode] Transparency'), 78 | _('0 transparent - 1 opaque (suggest: transparent: 0 or translucent preset: 0.5).')); 79 | for (var i of trans_set) 80 | o.value(i); 81 | o.default = '0.5'; 82 | o.rmempty = false; 83 | 84 | o = s.option(form.Value, 'blur', _('[Light mode] Frosted Glass Radius'), 85 | _('Larger value will more blurred (suggest: clear: 1 or blur preset: 10).')); 86 | o.datatype = 'ufloat'; 87 | o.default = '10'; 88 | o.rmempty = false; 89 | 90 | o = s.option(form.Value, 'dark_primary', _('[Dark mode] Primary Color'), 91 | _('A HEX Color (default: #483d8b).')) 92 | o.default = '#483d8b'; 93 | o.rmempty = false; 94 | o.validate = function(section_id, value) { 95 | if (section_id) 96 | return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(value) || 97 | _('Expecting: %s').format(_('valid HEX color value')); 98 | return true; 99 | } 100 | 101 | o = s.option(form.ListValue, 'transparency_dark', _('[Dark mode] Transparency'), 102 | _('0 transparent - 1 opaque (suggest: black translucent preset: 0.5).')); 103 | for (var i of trans_set) 104 | o.value(i); 105 | o.default = '0.5'; 106 | o.rmempty = false; 107 | 108 | o = s.option(form.Value, 'blur_dark', _('[Dark mode] Frosted Glass Radius'), 109 | _('Larger value will more blurred (suggest: clear: 1 or blur preset: 10).')) 110 | o.datatype = 'ufloat'; 111 | o.default = '10'; 112 | o.rmempty = false; 113 | 114 | o = s.option(form.Button, '_save', _('Save settings')); 115 | o.inputstyle = 'apply'; 116 | o.inputtitle = _('Save current settings'); 117 | o.onclick = function() { 118 | ui.changes.apply(true); 119 | return this.map.save(null, true); 120 | } 121 | 122 | s = m.section(form.TypedSection, null, _('Upload background (available space: %1024.2mB)') 123 | .format(data[1].avail * 1024), 124 | _('You can upload files such as gif/jpg/mp4/png/webm/webp files, to change the login page background.')); 125 | s.addremove = false; 126 | s.anonymous = true; 127 | 128 | o = s.option(form.Button, '_upload_bg', _('Upload background'), 129 | _('Files will be uploaded to %s.').format(bg_path)); 130 | o.inputstyle = 'action'; 131 | o.inputtitle = _('Upload...'); 132 | o.onclick = function(ev, section_id) { 133 | var file = '/tmp/argon_background.tmp'; 134 | return ui.uploadFile(file, ev.target).then(function(res) { 135 | return L.resolveDefault(callRenameArgon(res.name), {}).then(function(ret) { 136 | if (ret.result === 0) 137 | return location.reload(); 138 | else { 139 | ui.addNotification(null, E('p', _('Failed to upload file: %s.').format(res.name))); 140 | return L.resolveDefault(fs.remove(file), {}); 141 | } 142 | }); 143 | }) 144 | .catch(function(e) { ui.addNotification(null, E('p', e.message)); }); 145 | }; 146 | o.modalonly = true; 147 | 148 | s = m.section(form.TableSection); 149 | s.render = function() { 150 | var tbl = E('table', { 'class': 'table cbi-section-table' }, 151 | E('tr', { 'class': 'tr table-titles' }, [ 152 | E('th', { 'class': 'th' }, [ _('Filename') ]), 153 | E('th', { 'class': 'th' }, [ _('Modified date') ]), 154 | E('th', { 'class': 'th' }, [ _('Size') ]), 155 | E('th', { 'class': 'th' }, [ _('Action') ]) 156 | ]) 157 | ); 158 | 159 | cbi_update_table(tbl, data[2].map(L.bind(function(file) { 160 | return [ 161 | file.name, 162 | new Date(file.mtime * 1000).toLocaleString(), 163 | String.format('%1024.2mB', file.size), 164 | E('button', { 165 | 'class': 'btn cbi-button cbi-button-remove', 166 | 'click': ui.createHandlerFn(this, function() { 167 | return L.resolveDefault(callRemoveArgon(file.name), {}) 168 | .then(function() { return location.reload(); }); 169 | }) 170 | }, [ _('Delete') ]) 171 | ]; 172 | }, this)), E('em', _('No files found.'))); 173 | 174 | return E('div', { 'class': 'cbi-map', 'id': 'cbi-filelist' }, [ 175 | E('h3', _('Background file list')), 176 | tbl 177 | ]); 178 | }; 179 | 180 | return m.render(); 181 | }, 182 | 183 | handleSaveApply: null, 184 | handleSave: null, 185 | handleReset: null 186 | }); 187 | -------------------------------------------------------------------------------- /po/es/argon-config.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: \n" 4 | "POT-Creation-Date: 2021-03-15 21:25-0300\n" 5 | "PO-Revision-Date: 2022-04-23 15:21-0300\n" 6 | "Last-Translator: Franco Castillo \n" 7 | "Language-Team: \n" 8 | "Language: es\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 13 | "X-Generator: Poedit 3.0.1\n" 14 | 15 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:102 16 | msgid "0 transparent - 1 opaque (suggest: black translucent preset: 0.5)." 17 | msgstr "" 18 | 19 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:78 20 | msgid "" 21 | "0 transparent - 1 opaque (suggest: transparent: 0 or translucent preset: " 22 | "0.5)." 23 | msgstr "" 24 | 25 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:91 26 | msgid "A HEX Color (default: #483d8b)." 27 | msgstr "" 28 | 29 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:67 30 | msgid "A HEX color (default: #5e72e4)." 31 | msgstr "" 32 | 33 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:155 34 | msgid "Action" 35 | msgstr "" 36 | 37 | #: applications/luci-app-argon-config/root/usr/share/luci/menu.d/luci-app-argon-config.json:3 38 | msgid "Argon Config" 39 | msgstr "Configuración de Argon" 40 | 41 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:45 42 | msgid "Argon theme configuration" 43 | msgstr "" 44 | 45 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:175 46 | msgid "Background file list" 47 | msgstr "Lista de archivos de fondo" 48 | 49 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:54 50 | msgid "Bing" 51 | msgstr "" 52 | 53 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:53 54 | msgid "Built-in" 55 | msgstr "Integrado" 56 | 57 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:63 58 | msgid "Dark mode" 59 | msgstr "" 60 | 61 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:170 62 | msgid "Delete" 63 | msgstr "" 64 | 65 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:73 66 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:97 67 | msgid "Expecting: %s" 68 | msgstr "" 69 | 70 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:139 71 | msgid "Failed to upload file: %s." 72 | msgstr "" 73 | 74 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:152 75 | msgid "Filename" 76 | msgstr "" 77 | 78 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:129 79 | msgid "Files will be uploaded to %s." 80 | msgstr "" 81 | 82 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:61 83 | msgid "Follow system" 84 | msgstr "" 85 | 86 | #: applications/luci-app-argon-config/root/usr/share/rpcd/acl.d/luci-app-argon-config.json:3 87 | msgid "Grant UCI access for luci-app-argon-config" 88 | msgstr "Otorgar acceso UCI para luci-app-argon-config" 89 | 90 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:46 91 | msgid "" 92 | "Here you can set the blur and transparency of the login page of argon theme, " 93 | "and manage the background pictures and videos. Chrome is recommended." 94 | msgstr "" 95 | 96 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:85 97 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:109 98 | msgid "Larger value will more blurred (suggest: clear: 1 or blur preset: 10)." 99 | msgstr "" 100 | 101 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:62 102 | msgid "Light mode" 103 | msgstr "" 104 | 105 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:153 106 | msgid "Modified date" 107 | msgstr "" 108 | 109 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:172 110 | msgid "No files found." 111 | msgstr "" 112 | 113 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:116 114 | msgid "Save current settings" 115 | msgstr "" 116 | 117 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:114 118 | msgid "Save settings" 119 | msgstr "" 120 | 121 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:154 122 | msgid "Size" 123 | msgstr "Tamaño" 124 | 125 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:48 126 | msgid "Theme configuration" 127 | msgstr "" 128 | 129 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:60 130 | msgid "Theme mode" 131 | msgstr "Modo del tema" 132 | 133 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:55 134 | msgid "Unsplash" 135 | msgstr "" 136 | 137 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:128 138 | msgid "Upload background" 139 | msgstr "" 140 | 141 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:122 142 | msgid "Upload background (available space: %1024.2mB)" 143 | msgstr "" 144 | 145 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:131 146 | msgid "Upload..." 147 | msgstr "" 148 | 149 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:56 150 | msgid "Wallhaven" 151 | msgstr "" 152 | 153 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:52 154 | msgid "Wallpaper source" 155 | msgstr "" 156 | 157 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:124 158 | msgid "" 159 | "You can upload files such as gif/jpg/mp4/png/webm/webp files, to change the " 160 | "login page background." 161 | msgstr "" 162 | 163 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:108 164 | msgid "[Dark mode] Frosted Glass Radius" 165 | msgstr "[Modo oscuro] Radio de vidrio esmerilado" 166 | 167 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:90 168 | msgid "[Dark mode] Primary Color" 169 | msgstr "[Modo oscuro] Color primario" 170 | 171 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:101 172 | msgid "[Dark mode] Transparency" 173 | msgstr "[Modo oscuro] Transparencia" 174 | 175 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:84 176 | msgid "[Light mode] Frosted Glass Radius" 177 | msgstr "[Modo claro] Radio de vidrio esmerilado" 178 | 179 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:67 180 | msgid "[Light mode] Primary Color" 181 | msgstr "[Modo claro] Color primario" 182 | 183 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:77 184 | msgid "[Light mode] Transparency" 185 | msgstr "[Modo claro] Transparencia" 186 | 187 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:73 188 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:97 189 | msgid "valid HEX color value" 190 | msgstr "" 191 | 192 | #~ msgid "" 193 | #~ "0 transparent - 1 opaque ; ( Suggest: Black translucent preset: 0.5 )" 194 | #~ msgstr "" 195 | #~ "0 transparente - 1 opaco; (Sugerencia: negro translúcido preestablecido: " 196 | #~ "0.5)" 197 | 198 | #~ msgid "" 199 | #~ "0 transparent - 1 opaque ; ( Suggest: transparent: 0 or translucent " 200 | #~ "preset: 0.5 )" 201 | #~ msgstr "" 202 | #~ "0 transparente - 1 opaco; (Sugerencia: transparente: 0 o translúcido " 203 | #~ "preestablecido: 0.5)" 204 | 205 | #~ msgid "A HEX Color ; ( Default: #483d8b )" 206 | #~ msgstr "Un color HEX; (Predeterminado: #483d8b)" 207 | 208 | #~ msgid "A HEX Color ; ( Default: #5e72e4 )" 209 | #~ msgstr "Un color HEX; (Predeterminado: #5e72e4)" 210 | 211 | #~ msgid "Bing Wallpapers" 212 | #~ msgstr "Fondos de Bing" 213 | 214 | #~ msgid "Choose local file:" 215 | #~ msgstr "Elija un archivo local:" 216 | 217 | #~ msgid "Create upload file error." 218 | #~ msgstr "Crear archivo de error de carga." 219 | 220 | #~ msgid "File name" 221 | #~ msgstr "Nombre del archivo" 222 | 223 | #~ msgid "File saved to" 224 | #~ msgstr "Archivo guardado en" 225 | 226 | #~ msgid "Follow System" 227 | #~ msgstr "Seguir el sistema" 228 | 229 | #~ msgid "Force Dark" 230 | #~ msgstr "Forzar oscuro" 231 | 232 | #~ msgid "Force Light" 233 | #~ msgstr "Forzar claro" 234 | 235 | #~ msgid "" 236 | #~ "Here you can set the blur and transparency of the login page of argon " 237 | #~ "theme, and manage the background pictures and videos.[Chrome is " 238 | #~ "recommended]" 239 | #~ msgstr "" 240 | #~ "Aquí puede configurar el desenfoque y la transparencia de la página de " 241 | #~ "inicio de sesión del tema argon y administrar las imágenes de fondo y los " 242 | #~ "videos. [Se recomienda Chrome]" 243 | 244 | #~ msgid "" 245 | #~ "Larger value will more blurred ; ( Suggest: clear: 1 or blur preset: 10 )" 246 | #~ msgstr "" 247 | #~ "El valor más grande se verá más borroso; (Sugerencia: claro: 1 o " 248 | #~ "desenfoque predeterminado: 10)" 249 | 250 | #~ msgid "Modify time" 251 | #~ msgstr "Modificar la hora" 252 | 253 | #~ msgid "No specify upload file." 254 | #~ msgstr "No especificar archivo de carga." 255 | 256 | #~ msgid "Remove" 257 | #~ msgstr "Eliminar" 258 | 259 | #~ msgid "Save Changes" 260 | #~ msgstr "Guardar cambios" 261 | 262 | #~ msgid "Upload" 263 | #~ msgstr "Cargar" 264 | 265 | #~ msgid "Upload (Free:" 266 | #~ msgstr "Cargar (Libre:" 267 | 268 | #~ msgid "Upload file to '/www/luci-static/argon/background/'" 269 | #~ msgstr "Subir archivo a '/www/luci-static/argon/background/'" 270 | 271 | #~ msgid "Wallpaper Source" 272 | #~ msgstr "Fuente del fondo de pantalla" 273 | 274 | #~ msgid "You can choose Theme color mode here" 275 | #~ msgstr "Puede elegir el modo de color del tema aquí" 276 | 277 | #~ msgid "" 278 | #~ "You can upload files such as jpg,png,gif,webp,mp4,webm files, To change " 279 | #~ "the login page background." 280 | #~ msgstr "" 281 | #~ "Puede cargar archivos como jpg, png, gif, webp, mp4, webm, para cambiar " 282 | #~ "el fondo de la página de inicio de sesión." 283 | 284 | #~ msgid "Luci Argon theme config" 285 | #~ msgstr "Configuración del tema Luci Argon" 286 | -------------------------------------------------------------------------------- /po/templates/argon-config.pot: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "Content-Type: text/plain; charset=UTF-8" 3 | 4 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:102 5 | msgid "0 transparent - 1 opaque (suggest: black translucent preset: 0.5)." 6 | msgstr "" 7 | 8 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:78 9 | msgid "" 10 | "0 transparent - 1 opaque (suggest: transparent: 0 or translucent preset: " 11 | "0.5)." 12 | msgstr "" 13 | 14 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:91 15 | msgid "A HEX Color (default: #483d8b)." 16 | msgstr "" 17 | 18 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:67 19 | msgid "A HEX color (default: #5e72e4)." 20 | msgstr "" 21 | 22 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:155 23 | msgid "Action" 24 | msgstr "" 25 | 26 | #: applications/luci-app-argon-config/root/usr/share/luci/menu.d/luci-app-argon-config.json:3 27 | msgid "Argon Config" 28 | msgstr "" 29 | 30 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:45 31 | msgid "Argon theme configuration" 32 | msgstr "" 33 | 34 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:175 35 | msgid "Background file list" 36 | msgstr "" 37 | 38 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:54 39 | msgid "Bing" 40 | msgstr "" 41 | 42 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:53 43 | msgid "Built-in" 44 | msgstr "" 45 | 46 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:63 47 | msgid "Dark mode" 48 | msgstr "" 49 | 50 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:170 51 | msgid "Delete" 52 | msgstr "" 53 | 54 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:73 55 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:97 56 | msgid "Expecting: %s" 57 | msgstr "" 58 | 59 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:139 60 | msgid "Failed to upload file: %s." 61 | msgstr "" 62 | 63 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:152 64 | msgid "Filename" 65 | msgstr "" 66 | 67 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:129 68 | msgid "Files will be uploaded to %s." 69 | msgstr "" 70 | 71 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:61 72 | msgid "Follow system" 73 | msgstr "" 74 | 75 | #: applications/luci-app-argon-config/root/usr/share/rpcd/acl.d/luci-app-argon-config.json:3 76 | msgid "Grant UCI access for luci-app-argon-config" 77 | msgstr "" 78 | 79 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:46 80 | msgid "" 81 | "Here you can set the blur and transparency of the login page of argon theme, " 82 | "and manage the background pictures and videos. Chrome is recommended." 83 | msgstr "" 84 | 85 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:85 86 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:109 87 | msgid "Larger value will more blurred (suggest: clear: 1 or blur preset: 10)." 88 | msgstr "" 89 | 90 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:62 91 | msgid "Light mode" 92 | msgstr "" 93 | 94 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:153 95 | msgid "Modified date" 96 | msgstr "" 97 | 98 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:172 99 | msgid "No files found." 100 | msgstr "" 101 | 102 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:116 103 | msgid "Save current settings" 104 | msgstr "" 105 | 106 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:114 107 | msgid "Save settings" 108 | msgstr "" 109 | 110 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:154 111 | msgid "Size" 112 | msgstr "" 113 | 114 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:48 115 | msgid "Theme configuration" 116 | msgstr "" 117 | 118 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:60 119 | msgid "Theme mode" 120 | msgstr "" 121 | 122 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:55 123 | msgid "Unsplash" 124 | msgstr "" 125 | 126 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:128 127 | msgid "Upload background" 128 | msgstr "" 129 | 130 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:122 131 | msgid "Upload background (available space: %1024.2mB)" 132 | msgstr "" 133 | 134 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:131 135 | msgid "Upload..." 136 | msgstr "" 137 | 138 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:56 139 | msgid "Wallhaven" 140 | msgstr "" 141 | 142 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:52 143 | msgid "Wallpaper source" 144 | msgstr "" 145 | 146 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:124 147 | msgid "" 148 | "You can upload files such as gif/jpg/mp4/png/webm/webp files, to change the " 149 | "login page background." 150 | msgstr "" 151 | 152 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:108 153 | msgid "[Dark mode] Frosted Glass Radius" 154 | msgstr "" 155 | 156 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:90 157 | msgid "[Dark mode] Primary Color" 158 | msgstr "" 159 | 160 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:101 161 | msgid "[Dark mode] Transparency" 162 | msgstr "" 163 | 164 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:84 165 | msgid "[Light mode] Frosted Glass Radius" 166 | msgstr "" 167 | 168 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:67 169 | msgid "[Light mode] Primary Color" 170 | msgstr "" 171 | 172 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:77 173 | msgid "[Light mode] Transparency" 174 | msgstr "" 175 | 176 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:73 177 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:97 178 | msgid "valid HEX color value" 179 | msgstr "" 180 | -------------------------------------------------------------------------------- /po/zh_Hans/argon-config.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Content-Type: text/plain; charset=UTF-8\n" 4 | "Project-Id-Version: \n" 5 | "POT-Creation-Date: \n" 6 | "PO-Revision-Date: \n" 7 | "Last-Translator: dingpengyu \n" 8 | "Language-Team: \n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Transfer-Encoding: 8bit\n" 11 | "Language: zh_CN\n" 12 | "X-Generator: Poedit 2.3.1\n" 13 | 14 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:102 15 | msgid "0 transparent - 1 opaque (suggest: black translucent preset: 0.5)." 16 | msgstr "0 最透明 - 1 不透明(建议:黑色半透明 0.5)" 17 | 18 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:78 19 | msgid "" 20 | "0 transparent - 1 opaque (suggest: transparent: 0 or translucent preset: " 21 | "0.5)." 22 | msgstr "0 最透明 - 1 不透明(建议: 透明 0 或 半透明预设 0.5)。" 23 | 24 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:91 25 | msgid "A HEX Color (default: #483d8b)." 26 | msgstr "十六进制颜色值(预设为:#483d8b)。" 27 | 28 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:67 29 | msgid "A HEX color (default: #5e72e4)." 30 | msgstr "十六进制颜色值(预设为:#5e72e4)。" 31 | 32 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:155 33 | msgid "Action" 34 | msgstr "操作" 35 | 36 | #: applications/luci-app-argon-config/root/usr/share/luci/menu.d/luci-app-argon-config.json:3 37 | msgid "Argon Config" 38 | msgstr "Argon 主题设置" 39 | 40 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:45 41 | msgid "Argon theme configuration" 42 | msgstr "Argon 主题设置" 43 | 44 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:175 45 | msgid "Background file list" 46 | msgstr "背景文件列表" 47 | 48 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:54 49 | msgid "Bing" 50 | msgstr "Bing" 51 | 52 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:53 53 | msgid "Built-in" 54 | msgstr "内建" 55 | 56 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:63 57 | msgid "Dark mode" 58 | msgstr "暗黑模式" 59 | 60 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:170 61 | msgid "Delete" 62 | msgstr "删除" 63 | 64 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:73 65 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:97 66 | msgid "Expecting: %s" 67 | msgstr "请输入:%s" 68 | 69 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:139 70 | msgid "Failed to upload file: %s." 71 | msgstr "上传文件失败:%s。" 72 | 73 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:152 74 | msgid "Filename" 75 | msgstr "文件名" 76 | 77 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:129 78 | msgid "Files will be uploaded to %s." 79 | msgstr "文件将被上传至%s。" 80 | 81 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:61 82 | msgid "Follow system" 83 | msgstr "跟随系统" 84 | 85 | #: applications/luci-app-argon-config/root/usr/share/rpcd/acl.d/luci-app-argon-config.json:3 86 | msgid "Grant UCI access for luci-app-argon-config" 87 | msgstr "授予 luci-app-argon-config 访问 UCI 配置的权限" 88 | 89 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:46 90 | msgid "" 91 | "Here you can set the blur and transparency of the login page of argon theme, " 92 | "and manage the background pictures and videos. Chrome is recommended." 93 | msgstr "" 94 | "在这里你可以设置argon 主题的登录页面的模糊和透明度,并管理背景图片与视频。推" 95 | "荐使用 Chrome。" 96 | 97 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:85 98 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:109 99 | msgid "Larger value will more blurred (suggest: clear: 1 or blur preset: 10)." 100 | msgstr "值越大越模糊(建议:清透 1 或 模糊预设 10)" 101 | 102 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:62 103 | msgid "Light mode" 104 | msgstr "亮色模式" 105 | 106 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:153 107 | msgid "Modified date" 108 | msgstr "修改时间" 109 | 110 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:172 111 | msgid "No files found." 112 | msgstr "没有找到文件。" 113 | 114 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:116 115 | msgid "Save current settings" 116 | msgstr "保存当前设置" 117 | 118 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:114 119 | msgid "Save settings" 120 | msgstr "保存设置" 121 | 122 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:154 123 | msgid "Size" 124 | msgstr "大小" 125 | 126 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:48 127 | msgid "Theme configuration" 128 | msgstr "主题配置" 129 | 130 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:60 131 | msgid "Theme mode" 132 | msgstr "主题模式" 133 | 134 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:55 135 | msgid "Unsplash" 136 | msgstr "Unsplash" 137 | 138 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:128 139 | msgid "Upload background" 140 | msgstr "上传背景" 141 | 142 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:122 143 | msgid "Upload background (available space: %1024.2mB)" 144 | msgstr "上传背景(可用空间:%1024.2mB)" 145 | 146 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:131 147 | msgid "Upload..." 148 | msgstr "上传..." 149 | 150 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:56 151 | msgid "Wallhaven" 152 | msgstr "Wallhaven" 153 | 154 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:52 155 | msgid "Wallpaper source" 156 | msgstr "壁纸来源" 157 | 158 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:124 159 | msgid "" 160 | "You can upload files such as gif/jpg/mp4/png/webm/webp files, to change the " 161 | "login page background." 162 | msgstr "" 163 | "你可以上传 gif/jpg/mp4/png/webm/webp 等格式的文件,以创建自己喜欢的登录界面。" 164 | 165 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:108 166 | msgid "[Dark mode] Frosted Glass Radius" 167 | msgstr "[暗色模式] 毛玻璃模糊半径" 168 | 169 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:90 170 | msgid "[Dark mode] Primary Color" 171 | msgstr "[暗色模式] 主色调" 172 | 173 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:101 174 | msgid "[Dark mode] Transparency" 175 | msgstr "[暗色模式] 透明度" 176 | 177 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:84 178 | msgid "[Light mode] Frosted Glass Radius" 179 | msgstr "[亮色模式] 毛玻璃模糊半径" 180 | 181 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:67 182 | msgid "[Light mode] Primary Color" 183 | msgstr "[亮色模式] 主色调" 184 | 185 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:77 186 | msgid "[Light mode] Transparency" 187 | msgstr "[亮色模式] 透明度" 188 | 189 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:73 190 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:97 191 | msgid "valid HEX color value" 192 | msgstr "有效十六进制颜色值" 193 | -------------------------------------------------------------------------------- /po/zh_Hant/argon-config.po: -------------------------------------------------------------------------------- 1 | msgid "" 2 | msgstr "" 3 | "Project-Id-Version: \n" 4 | "POT-Creation-Date: \n" 5 | "PO-Revision-Date: \n" 6 | "Last-Translator: Victor Tseng \n" 7 | "Language-Team: \n" 8 | "Language: zh_TW\n" 9 | "MIME-Version: 1.0\n" 10 | "Content-Type: text/plain; charset=UTF-8\n" 11 | "Content-Transfer-Encoding: 8bit\n" 12 | "X-Generator: Poedit 3.2.2\n" 13 | 14 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:102 15 | msgid "0 transparent - 1 opaque (suggest: black translucent preset: 0.5)." 16 | msgstr "" 17 | 18 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:78 19 | msgid "" 20 | "0 transparent - 1 opaque (suggest: transparent: 0 or translucent preset: " 21 | "0.5)." 22 | msgstr "" 23 | 24 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:91 25 | msgid "A HEX Color (default: #483d8b)." 26 | msgstr "" 27 | 28 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:67 29 | msgid "A HEX color (default: #5e72e4)." 30 | msgstr "" 31 | 32 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:155 33 | msgid "Action" 34 | msgstr "" 35 | 36 | #: applications/luci-app-argon-config/root/usr/share/luci/menu.d/luci-app-argon-config.json:3 37 | msgid "Argon Config" 38 | msgstr "Argon 設定" 39 | 40 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:45 41 | msgid "Argon theme configuration" 42 | msgstr "" 43 | 44 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:175 45 | msgid "Background file list" 46 | msgstr "背景檔案清單" 47 | 48 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:54 49 | msgid "Bing" 50 | msgstr "" 51 | 52 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:53 53 | msgid "Built-in" 54 | msgstr "內建" 55 | 56 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:63 57 | msgid "Dark mode" 58 | msgstr "" 59 | 60 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:170 61 | msgid "Delete" 62 | msgstr "" 63 | 64 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:73 65 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:97 66 | msgid "Expecting: %s" 67 | msgstr "" 68 | 69 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:139 70 | msgid "Failed to upload file: %s." 71 | msgstr "" 72 | 73 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:152 74 | msgid "Filename" 75 | msgstr "" 76 | 77 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:129 78 | msgid "Files will be uploaded to %s." 79 | msgstr "" 80 | 81 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:61 82 | msgid "Follow system" 83 | msgstr "" 84 | 85 | #: applications/luci-app-argon-config/root/usr/share/rpcd/acl.d/luci-app-argon-config.json:3 86 | msgid "Grant UCI access for luci-app-argon-config" 87 | msgstr "為 luci-app-argon-config 授予 UCI 權限" 88 | 89 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:46 90 | msgid "" 91 | "Here you can set the blur and transparency of the login page of argon theme, " 92 | "and manage the background pictures and videos. Chrome is recommended." 93 | msgstr "" 94 | 95 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:85 96 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:109 97 | msgid "Larger value will more blurred (suggest: clear: 1 or blur preset: 10)." 98 | msgstr "" 99 | 100 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:62 101 | msgid "Light mode" 102 | msgstr "" 103 | 104 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:153 105 | msgid "Modified date" 106 | msgstr "" 107 | 108 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:172 109 | msgid "No files found." 110 | msgstr "" 111 | 112 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:116 113 | msgid "Save current settings" 114 | msgstr "" 115 | 116 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:114 117 | msgid "Save settings" 118 | msgstr "" 119 | 120 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:154 121 | msgid "Size" 122 | msgstr "容量" 123 | 124 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:48 125 | msgid "Theme configuration" 126 | msgstr "" 127 | 128 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:60 129 | msgid "Theme mode" 130 | msgstr "佈景主題模式" 131 | 132 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:55 133 | msgid "Unsplash" 134 | msgstr "" 135 | 136 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:128 137 | msgid "Upload background" 138 | msgstr "" 139 | 140 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:122 141 | msgid "Upload background (available space: %1024.2mB)" 142 | msgstr "" 143 | 144 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:131 145 | msgid "Upload..." 146 | msgstr "" 147 | 148 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:56 149 | msgid "Wallhaven" 150 | msgstr "" 151 | 152 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:52 153 | msgid "Wallpaper source" 154 | msgstr "" 155 | 156 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:124 157 | msgid "" 158 | "You can upload files such as gif/jpg/mp4/png/webm/webp files, to change the " 159 | "login page background." 160 | msgstr "" 161 | 162 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:108 163 | msgid "[Dark mode] Frosted Glass Radius" 164 | msgstr "《深色模式》模糊效果半徑" 165 | 166 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:90 167 | msgid "[Dark mode] Primary Color" 168 | msgstr "《深色模式》主色彩" 169 | 170 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:101 171 | msgid "[Dark mode] Transparency" 172 | msgstr "《深色模式》透明度" 173 | 174 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:84 175 | msgid "[Light mode] Frosted Glass Radius" 176 | msgstr "《淺色模式》模糊效果半徑" 177 | 178 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:67 179 | msgid "[Light mode] Primary Color" 180 | msgstr "《淺色模式》主色彩" 181 | 182 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:77 183 | msgid "[Light mode] Transparency" 184 | msgstr "《淺色模式》透明度" 185 | 186 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:73 187 | #: applications/luci-app-argon-config/htdocs/luci-static/resources/view/argon-config.js:97 188 | msgid "valid HEX color value" 189 | msgstr "" 190 | 191 | #~ msgid "" 192 | #~ "0 transparent - 1 opaque ; ( Suggest: Black translucent preset: 0.5 )" 193 | #~ msgstr "0 全透明 - 1 不透明(建議:黑色半透明 0.5)" 194 | 195 | #~ msgid "" 196 | #~ "0 transparent - 1 opaque ; ( Suggest: transparent: 0 or translucent " 197 | #~ "preset: 0.5 )" 198 | #~ msgstr "0 全透明 - 1 不透明(建議:全透明 0,或半透明 0.5)" 199 | 200 | #~ msgid "A HEX Color ; ( Default: #483d8b )" 201 | #~ msgstr "十六進制顏色(預設 #483d8b)" 202 | 203 | #~ msgid "A HEX Color ; ( Default: #5e72e4 )" 204 | #~ msgstr "十六進制顏色(預設 #5e72e4)" 205 | 206 | #~ msgid "Bing Wallpapers" 207 | #~ msgstr "必應桌布" 208 | 209 | #~ msgid "Choose local file:" 210 | #~ msgstr "選擇本地檔案:" 211 | 212 | #~ msgid "Create upload file error." 213 | #~ msgstr "建立上傳檔案錯誤。" 214 | 215 | #~ msgid "File name" 216 | #~ msgstr "檔案名稱" 217 | 218 | #~ msgid "File saved to" 219 | #~ msgstr "檔案已儲存至" 220 | 221 | #~ msgid "Follow System" 222 | #~ msgstr "跟隨系統配色" 223 | 224 | #~ msgid "Force Dark" 225 | #~ msgstr "強制深色" 226 | 227 | #~ msgid "Force Light" 228 | #~ msgstr "強制淺色" 229 | 230 | #~ msgid "" 231 | #~ "Here you can set the blur and transparency of the login page of argon " 232 | #~ "theme, and manage the background pictures and videos.[Chrome is " 233 | #~ "recommended]" 234 | #~ msgstr "" 235 | #~ "您可以在此設定登入畫面的模糊度、透明度、以及管理背景圖片與影片(推薦使用 " 236 | #~ "Chrome)。" 237 | 238 | #~ msgid "" 239 | #~ "Larger value will more blurred ; ( Suggest: clear: 1 or blur preset: 10 )" 240 | #~ msgstr "數值越大越模糊(建議:清晰 1,或模糊程度 10)" 241 | 242 | #~ msgid "Modify time" 243 | #~ msgstr "修改時間" 244 | 245 | #~ msgid "No specify upload file." 246 | #~ msgstr "沒有選擇要上傳的檔案。" 247 | 248 | #~ msgid "Remove" 249 | #~ msgstr "移除" 250 | 251 | #~ msgid "Save Changes" 252 | #~ msgstr "保存變更" 253 | 254 | #~ msgid "Upload" 255 | #~ msgstr "上傳" 256 | 257 | #~ msgid "Upload (Free:" 258 | #~ msgstr "上傳(剩餘空間:" 259 | 260 | #~ msgid "Upload file to '/www/luci-static/argon/background/'" 261 | #~ msgstr "上傳檔案至「/www/luci-static/argon/background」" 262 | 263 | #~ msgid "Wallpaper Source" 264 | #~ msgstr "桌布來源" 265 | 266 | #~ msgid "You can choose Theme color mode here" 267 | #~ msgstr "您可以在此選擇佈景主題的顏色模式" 268 | 269 | #~ msgid "" 270 | #~ "You can upload files such as jpg,png,gif,mp4,webm files, To change the " 271 | #~ "login page background." 272 | #~ msgstr "" 273 | #~ "您可以上傳諸如 jpg、png、gif、mp4、webm 等類型的檔案來更換登入畫面的背景。" 274 | -------------------------------------------------------------------------------- /root/etc/config/argon: -------------------------------------------------------------------------------- 1 | config global 2 | option primary '#5e72e4' 3 | option dark_primary '#483d8b' 4 | option blur '10' 5 | option blur_dark '10' 6 | option transparency '0.5' 7 | option transparency_dark '0.5' 8 | option mode 'normal' 9 | option online_wallpaper 'bing' 10 | 11 | -------------------------------------------------------------------------------- /root/etc/uci-defaults/luci-argon-config: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | bing_background="$(uci -q get "argon.@global[0].bing_background")" 4 | [ -n "$bing_background" ] || exit 0 5 | 6 | if [ "$bing_background" = "1" ]; then 7 | uci -q set "argon.@global[0].online_wallpaper"="bing" 8 | else 9 | uci -q set "argon.@global[0].online_wallpaper"="none" 10 | fi 11 | uci -q delete "argon.@global[0].bing_background" 12 | uci -q commit "argon" 13 | 14 | exit 0 15 | -------------------------------------------------------------------------------- /root/usr/libexec/rpcd/luci.argon: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . /lib/functions.sh 4 | . /usr/share/libubox/jshn.sh 5 | 6 | readonly bg_path="/www/luci-static/argon/background" 7 | readonly tmp_path="/tmp/argon_background.tmp" 8 | 9 | case "$1" in 10 | "list") 11 | json_init 12 | json_add_object "avail" 13 | json_close_object 14 | json_add_object "remove" 15 | json_add_string "filename" "filename" 16 | json_close_object 17 | json_add_object "rename" 18 | json_add_string "newname" "filename" 19 | json_close_object 20 | json_dump 21 | json_cleanup 22 | ;; 23 | "call") 24 | case "$2" in 25 | "avail") 26 | json_init 27 | json_add_int "avail" "$(df | grep -E '/$' | awk '{print $4}')" 28 | json_dump 29 | json_cleanup 30 | ;; 31 | "remove") 32 | read -r input 33 | json_load "$input" 34 | json_get_var filename "filename" 35 | json_cleanup 36 | 37 | if dirname "$filename" | grep -q ".."; then 38 | echo '{ "result": 255 }' 39 | exit 255 40 | fi 41 | 42 | rm -f "$bg_path/$filename" 43 | echo '{ "result": 0 }' 44 | ;; 45 | "rename") 46 | read -r input 47 | json_load "$input" 48 | json_get_var newname "newname" 49 | json_cleanup 50 | 51 | if dirname "$newname" | grep -q ".."; then 52 | echo '{ "result": 255 }' 53 | exit 255 54 | fi 55 | 56 | if mv "$tmp_path" "$bg_path/$newname" 2>"/dev/null"; then 57 | chmod 0644 "$bg_path/$newname" 58 | echo '{ "result": 0 }' 59 | else 60 | echo '{ "result": 1 }' 61 | fi 62 | ;; 63 | esac 64 | ;; 65 | esac 66 | -------------------------------------------------------------------------------- /root/usr/share/luci/menu.d/luci-app-argon-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "admin/system/argon-config": { 3 | "title": "Argon Config", 4 | "order": 90, 5 | "action": { 6 | "type": "view", 7 | "path": "argon-config" 8 | }, 9 | "depends": { 10 | "acl": [ "luci-app-argon-config" ], 11 | "uci": { "argon": true } 12 | } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /root/usr/share/rpcd/acl.d/luci-app-argon-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "luci-app-argon-config": { 3 | "description": "Grant UCI access for luci-app-argon-config", 4 | "read": { 5 | "file": { 6 | "/www/luci-static/argon/background/*": [ "list" ] 7 | }, 8 | "ubus": { 9 | "luci.argon": [ "avail", "remove", "rename" ] 10 | }, 11 | "uci": [ "argon" ] 12 | }, 13 | "write": { 14 | "file": { 15 | "/tmp/argon_background.tmp": [ "write" ] 16 | }, 17 | "uci": [ "argon" ] 18 | } 19 | } 20 | } 21 | --------------------------------------------------------------------------------