[Connect] Remove for release

This commit is contained in:
child_duckling 2022-06-08 11:17:41 -07:00
parent 4ba9407a4f
commit f7a76d619c
3 changed files with 15 additions and 2 deletions

View file

@ -54,8 +54,18 @@ export class utils {
if (language !== "en_US" && fs.existsSync(path.join(this.paths.i18nPath, `${language}.json`))) { if (language !== "en_US" && fs.existsSync(path.join(this.paths.i18nPath, `${language}.json`))) {
i18n = Object.assign(i18n, JSON.parse(fs.readFileSync(path.join(this.paths.i18nPath, `${language}.json`), "utf8"))); i18n = Object.assign(i18n, JSON.parse(fs.readFileSync(path.join(this.paths.i18nPath, `${language}.json`), "utf8")));
} else if (!fs.existsSync(path.join(this.paths.i18nPath, `${language}.json`))) {
fetch(`https://raw.githubusercontent.com/ciderapp/Cider/main/src/i18n/${language}.json`)
.then(res => res.json())
.then(res => {
if (res) {
i18n = Object.assign(i18n, res);
fs.writeFileSync(path.join(this.paths.i18nPath, `${language}.json`), JSON.stringify(res));
} else {
i18n = Object.assign(i18n, JSON.parse(fs.readFileSync(path.join(this.paths.i18nPath, `en_US.json`), "utf8")));
}
})
} }
if (key) { if (key) {
return i18n[key] return i18n[key]
} else { } else {

View file

@ -1251,9 +1251,10 @@
</div> </div>
</b-tab> </b-tab>
<!-- Connect Settings --> <!-- Connect Settings -->
<!-- Not Prod Ready
<b-tab :title="$root.getLz('settings.header.connect')"> <b-tab :title="$root.getLz('settings.header.connect')">
<div class="md-option-container"> <div class="md-option-container">
<!-- Cider Connect / Linking Settings --> <!!!!!-- Cider Connect / Linking Settings -!->
<div class="md-option-header"> <div class="md-option-header">
<span>{{$root.getLz('settings.header.connect')}}</span> <span>{{$root.getLz('settings.header.connect')}}</span>
</div> </div>
@ -1335,6 +1336,7 @@
</div> </div>
</div> </div>
</b-tab> </b-tab>
-->
</b-tabs> </b-tabs>
</div> </div>
</script> </script>

View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>

After

Width:  |  Height:  |  Size: 388 B