ci: fix frontend formatting

pull/1729/head
Oleg Lobanov 2021-12-20 21:59:07 +01:00
parent 683b11d265
commit 2bebb5f0f8
No known key found for this signature in database
GPG Key ID: 7CC64E41212621B0
3 changed files with 13 additions and 8 deletions

View File

@ -5,7 +5,7 @@
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "serve": "vue-cli-service serve",
"build": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --no-clean", "build": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --no-clean",
"lint": "npx vue-cli-service lint --no-fix", "lint": "npx vue-cli-service lint --no-fix --max-warnings=0",
"fix": "npx vue-cli-service lint", "fix": "npx vue-cli-service lint",
"watch": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --watch --no-clean" "watch": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --watch --no-clean"
}, },

View File

@ -137,8 +137,8 @@
> >
<i class="material-icons">chevron_right</i> <i class="material-icons">chevron_right</i>
</button> </button>
<link rel="prefetch" :href="previousRaw"> <link rel="prefetch" :href="previousRaw" />
<link rel="prefetch" :href="nextRaw"> <link rel="prefetch" :href="nextRaw" />
</div> </div>
</template> </template>
@ -320,13 +320,13 @@ export default {
return; return;
} }
}, },
prefetchUrl: function(item) { prefetchUrl: function (item) {
const key = Date.parse(item.modified); const key = Date.parse(item.modified);
if (item.type === "image" && !this.fullSize) { if (item.type === "image" && !this.fullSize) {
return `${baseURL}/api/preview/big${item.path}?k=${key}&inline=true`; return `${baseURL}/api/preview/big${item.path}?k=${key}&inline=true`;
} else if (item.type === "image"){ } else if (item.type === "image") {
return `${baseURL}/api/raw${item.path}?k=${key}&inline=true`; return `${baseURL}/api/raw${item.path}?k=${key}&inline=true`;
} else{ } else {
return ""; return "";
} }
}, },

View File

@ -17,7 +17,7 @@
</p> </p>
<p> <p>
<input type="checkbox" v-model="dateFormat" /> <input type="checkbox" v-model="dateFormat" />
{{ $t("settings.setDateFormat") }} {{ $t("settings.setDateFormat") }}
</p> </p>
<h3>{{ $t("settings.language") }}</h3> <h3>{{ $t("settings.language") }}</h3>
<languages <languages
@ -143,7 +143,12 @@ export default {
singleClick: this.singleClick, singleClick: this.singleClick,
dateFormat: this.dateFormat, dateFormat: this.dateFormat,
}; };
await api.update(data, ["locale", "hideDotfiles", "singleClick", "dateFormat"]); await api.update(data, [
"locale",
"hideDotfiles",
"singleClick",
"dateFormat",
]);
this.updateUser(data); this.updateUser(data);
this.$showSuccess(this.$t("settings.settingsUpdated")); this.$showSuccess(this.$t("settings.settingsUpdated"));
} catch (e) { } catch (e) {