style: fix linting issues met Prettier
This commit is contained in:
parent
964eaf928e
commit
bdd102b937
3 changed files with 14 additions and 6 deletions
|
@ -143,7 +143,7 @@ router.beforeEach(async (to, _from, next) => {
|
||||||
// Verify if user is logged in before accessing certain routes
|
// Verify if user is logged in before accessing certain routes
|
||||||
if (to.meta.requiresAuth) {
|
if (to.meta.requiresAuth) {
|
||||||
if (!authService.isLoggedIn.value && !(await authService.loadUser())) {
|
if (!authService.isLoggedIn.value && !(await authService.loadUser())) {
|
||||||
const path = to.fullPath
|
const path = to.fullPath;
|
||||||
if (path !== "/") {
|
if (path !== "/") {
|
||||||
localStorage.setItem("redirectAfterLogin", path);
|
localStorage.setItem("redirectAfterLogin", path);
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
// The code a student sends in to join a class needs to be formatted as v4 to be valid
|
// The code a student sends in to join a class needs to be formatted as v4 to be valid
|
||||||
// These rules are used to display a message to the user if they use a code that has an invalid format
|
// These rules are used to display a message to the user if they use a code that has an invalid format
|
||||||
function codeRegex(value: string): boolean {
|
function codeRegex(value: string): boolean {
|
||||||
return /^[a-zA-Z0-9]{6}$/.test(value)
|
return /^[a-zA-Z0-9]{6}$/.test(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
const codeRules = [
|
const codeRules = [
|
||||||
|
|
|
@ -137,8 +137,7 @@
|
||||||
await navigator.clipboard.writeText(content);
|
await navigator.clipboard.writeText(content);
|
||||||
copied.value = isDialog;
|
copied.value = isDialog;
|
||||||
|
|
||||||
if (!isDialog)
|
if (!isDialog) showSnackbar(t("copied"), "white");
|
||||||
showSnackbar(t("copied"), "white");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom breakpoints
|
// Custom breakpoints
|
||||||
|
@ -231,7 +230,12 @@
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<v-row v-if="!isMdAndDown" dense align="center" no-gutters>
|
<v-row
|
||||||
|
v-if="!isMdAndDown"
|
||||||
|
dense
|
||||||
|
align="center"
|
||||||
|
no-gutters
|
||||||
|
>
|
||||||
<v-btn
|
<v-btn
|
||||||
variant="text"
|
variant="text"
|
||||||
append-icon="mdi-content-copy"
|
append-icon="mdi-content-copy"
|
||||||
|
@ -247,7 +251,11 @@
|
||||||
<v-icon>mdi-link-variant</v-icon>
|
<v-icon>mdi-link-variant</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
</v-row>
|
</v-row>
|
||||||
<span v-else style="cursor: pointer" @click="openCodeDialog(c.id)">
|
<span
|
||||||
|
v-else
|
||||||
|
style="cursor: pointer"
|
||||||
|
@click="openCodeDialog(c.id)"
|
||||||
|
>
|
||||||
<v-icon icon="mdi-eye"></v-icon>
|
<v-icon icon="mdi-eye"></v-icon>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue