mirror of
https://github.com/unraid/api.git
synced 2026-01-05 08:00:33 -06:00
chore(upc): lint fixes
This commit is contained in:
@@ -92,7 +92,7 @@ onBeforeMount(() => {
|
||||
<span class="text-right text-12px sm:text-18px hidden 2xs:block">{{ description }}</span>
|
||||
<span class="text-gamma hidden md:inline-block px-8px">•</span>
|
||||
</template>
|
||||
<button :title="t('Click to Copy LAN IP {0}', [lanIp])" @click="copyLanIp()" class="opacity-100 hover:opacity-75 focus:opacity-75 transition-opacity">
|
||||
<button :title="t('Click to Copy LAN IP {0}', [lanIp])" class="opacity-100 hover:opacity-75 focus:opacity-75 transition-opacity" @click="copyLanIp()">
|
||||
{{ name }}
|
||||
</button>
|
||||
<span
|
||||
|
||||
@@ -8,7 +8,7 @@ import { PLUGIN_SETTINGS } from '~/helpers/urls';
|
||||
import { useAccountStore } from '~/store/account';
|
||||
import { useCallbackActionsStore } from '~/store/callbackActions';
|
||||
import { useInstallKeyStore } from '~/store/installKey';
|
||||
import { usePromoStore } from '~/store/promo';
|
||||
// import { usePromoStore } from '~/store/promo';
|
||||
import { useServerStore } from '~/store/server';
|
||||
|
||||
export interface Props {
|
||||
@@ -23,7 +23,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
const accountStore = useAccountStore();
|
||||
const callbackActionsStore = useCallbackActionsStore();
|
||||
const installKeyStore = useInstallKeyStore();
|
||||
const promoStore = usePromoStore();
|
||||
// const promoStore = usePromoStore();
|
||||
const serverStore = useServerStore();
|
||||
|
||||
const {
|
||||
@@ -196,7 +196,9 @@ const accountActionStatusCopy = computed((): { text: string; } => {
|
||||
:for-expire="true"
|
||||
:t="t"
|
||||
/>
|
||||
<p v-else>{{ t('Calculating trial expiration…') }}</p>
|
||||
<p v-else>
|
||||
{{ t('Calculating trial expiration…') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<template v-if="keyInstallStatus === 'failed'">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<script setup lang="ts">
|
||||
<script setup lang="ts">
|
||||
import { ExclamationTriangleIcon, CheckCircleIcon, UserCircleIcon } from '@heroicons/vue/24/solid';
|
||||
import { storeToRefs } from 'pinia';
|
||||
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
*/
|
||||
import AES from 'crypto-js/aes';
|
||||
import Utf8 from 'crypto-js/enc-utf8';
|
||||
import { createPinia, defineStore, setActivePinia, storeToRefs, type StoreDefinition, type StoreGeneric } from 'pinia';
|
||||
import type { ComputedRef, Ref } from 'vue';
|
||||
import { createPinia, defineStore, setActivePinia } from 'pinia';
|
||||
|
||||
/**
|
||||
* @see https://stackoverflow.com/questions/73476371/using-pinia-with-vue-js-web-components
|
||||
@@ -54,6 +53,14 @@ export interface ServerData {
|
||||
wanFQDN?: string;
|
||||
}
|
||||
|
||||
export interface UserInfo {
|
||||
'custom:ips_id'?: string;
|
||||
email?: string;
|
||||
email_verifed?: 'true' | 'false';
|
||||
preferred_username?: string;
|
||||
sub?: string;
|
||||
username?: string;
|
||||
}
|
||||
export interface ExternalSignIn {
|
||||
type: SignIn;
|
||||
apiKey: string;
|
||||
@@ -105,15 +112,6 @@ export interface UpcPayload {
|
||||
|
||||
export type QueryPayloads = ExternalPayload | UpcPayload;
|
||||
|
||||
export interface UserInfo {
|
||||
'custom:ips_id'?: string;
|
||||
email?: string;
|
||||
email_verifed?: 'true' | 'false';
|
||||
preferred_username?: string;
|
||||
sub?: string;
|
||||
username?: string;
|
||||
}
|
||||
|
||||
export interface CallbackActionsStore {
|
||||
saveCallbackData: (decryptedData: QueryPayloads) => void;
|
||||
encryptionKey: string;
|
||||
@@ -141,7 +139,6 @@ export const useCallbackStoreGeneric = (
|
||||
destinationUrl.searchParams.set('data', encodeURI(encryptedMessage));
|
||||
console.debug('[callback.send]', encryptedMessage, destinationUrl);
|
||||
window.location.href = destinationUrl.toString();
|
||||
return;
|
||||
};
|
||||
|
||||
const watcher = () => {
|
||||
|
||||
Reference in New Issue
Block a user