mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -05:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
334f6a3580
17
README.md
17
README.md
@ -3,6 +3,8 @@ SwitchyOmega
|
|||||||
|
|
||||||
Manage and switch between multiple proxies quickly & easily.
|
Manage and switch between multiple proxies quickly & easily.
|
||||||
|
|
||||||
|
[![Translation status](https://hosted.weblate.org/widgets/switchyomega/-/svg-badge.svg)](https://hosted.weblate.org/engage/switchyomega/?utm_source=widget)
|
||||||
|
|
||||||
Chromium Extension
|
Chromium Extension
|
||||||
------------------
|
------------------
|
||||||
The project is available as a Chromium Extension.
|
The project is available as a Chromium Extension.
|
||||||
@ -62,15 +64,14 @@ time for that now. Feel free to open a pull request if you want to help.
|
|||||||
|
|
||||||
## Translation
|
## Translation
|
||||||
|
|
||||||
All translations are in the `omega-i18n` folder. For now, only `en` \(English\)
|
Translation is hosted on Weblate. If you want to help improve the translated
|
||||||
and `zh` \(简体中文\) translations are done. If you notice a translation issue
|
text or start translation for your language, please follow the link of the picture
|
||||||
such as typo or bad spelling, please open an issue or a pull request.
|
below.
|
||||||
|
|
||||||
You can also help to translate SwitchyOmega into your language. Just fork the
|
本项目翻译由Weblate托管。如果您希望帮助改进翻译,或将本项目翻译成一种新的语言,请
|
||||||
project and copy the `en` folder to a new folder named the locale code of your
|
点击下方图片链接进入翻译。
|
||||||
choice. Then edit the `message.json` to provide translations. The file is in
|
|
||||||
[Chrome Extension Locale-Specific Messages Format](https://developer.chrome.com/extensions/i18n-messages).
|
[![Translation status](https://hosted.weblate.org/widgets/switchyomega/-/287x66-white.png)](https://hosted.weblate.org/engage/switchyomega/?utm_source=widget)
|
||||||
Don't forget to open a pull request when you are done translating.
|
|
||||||
|
|
||||||
## Building the project
|
## Building the project
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"grunt-hub": "^0.7.0"
|
"grunt-hub": "^0.7.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"deps": "npm install && (cd ../omega-pac && npm install); (cd ../omega-target && npm install); (cd ../omega-web && npm install && bower install); (cd ../omega-target-chromium-extension/ && npm install);",
|
"deps": "npm install && (cd ../omega-pac && npm install) && (cd ../omega-target && npm install) && (cd ../omega-web && npm install && bower install) && (cd ../omega-target-chromium-extension/ && npm install)",
|
||||||
"dev": "(cd ../omega-pac && npm run dev); (cd ../omega-target && npm run dev); (cd ../omega-web && npm run dev); (cd ../omega-target-chromium-extension/ && npm run dev);"
|
"dev": "(cd ../omega-pac && npm run dev) && (cd ../omega-target && npm run dev) && (cd ../omega-web && npm run dev) && (cd ../omega-target-chromium-extension/ && npm run dev)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,6 +27,6 @@
|
|||||||
"omega-target": "./omega_target_shim.js"
|
"omega-target": "./omega_target_shim.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "npm link omega-target; npm link omega-web"
|
"dev": "npm link omega-target && npm link omega-web"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,6 @@
|
|||||||
"omega-pac": "./omega_pac_shim.js"
|
"omega-pac": "./omega_pac_shim.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "npm link omega-pac; npm link"
|
"dev": "npm link omega-pac && npm link"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,9 +14,10 @@ class BrowserStorage extends Storage
|
|||||||
map[key] = undefined
|
map[key] = undefined
|
||||||
else if typeof keys == 'object'
|
else if typeof keys == 'object'
|
||||||
map = keys
|
map = keys
|
||||||
for own key, value of map
|
for own key of map
|
||||||
try
|
try
|
||||||
map[key] = JSON.parse(@proto.getItem.call(@storage, @prefix + key))
|
value = JSON.parse(@proto.getItem.call(@storage, @prefix + key))
|
||||||
|
map[key] = value if value?
|
||||||
if typeof map[key] == 'undefined'
|
if typeof map[key] == 'undefined'
|
||||||
delete map[key]
|
delete map[key]
|
||||||
Promise.resolve map
|
Promise.resolve map
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
"omega-pac": "../omega-pac"
|
"omega-pac": "../omega-pac"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "npm link omega-pac; npm link"
|
"dev": "npm link omega-pac && npm link"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user