Skip to content

Commit

Permalink
fixing typescript errors in nuxt module
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Jun 11, 2024
1 parent 907ba8b commit a50b9be
Show file tree
Hide file tree
Showing 61 changed files with 992 additions and 630 deletions.
5 changes: 3 additions & 2 deletions packages/common/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import type { CustomThemeConfig } from 'tailwindcss/types/config'
import plugin from 'tailwindcss/plugin'
import themeColors, {
foundationColors,
internalColors,
grayScaleColors,
socialColors,
ThemeWww,
Expand Down Expand Up @@ -135,8 +136,8 @@ const defaultTheme: Partial<CustomThemeConfig> = {
'jpl-red-dark-w50': foundationColors['jpl-red-dark'] + ' 50%',
'jpl-red-darker-w50': foundationColors['jpl-red-darker'] + ' 50%',
'jpl-red-light-w50': foundationColors['jpl-red-light'] + ' 50%',
'jpl-sky-blue-w50': foundationColors['jpl-sky-blue'] + ' 50%',
'jpl-sky-blue-dark-w50': foundationColors['jpl-sky-blue-dark'] + ' 50%',
'jpl-sky-blue-w50': internalColors['jpl-sky-blue'] + ' 50%',
'jpl-sky-blue-dark-w50': internalColors['jpl-sky-blue-dark'] + ' 50%',
'white-w50': grayScaleColors.white + ' 50%',
'gray-dark-w50': grayScaleColors['gray-dark'] + ' 50%',
'facebook-w50': socialColors.facebook + ' 50%',
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/dist/runtime/plugins/filters.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: any;
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
export default _default;
1 change: 1 addition & 0 deletions packages/nuxt/dist/runtime/plugins/filters.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import filters from "@explorer-1/vue/src/utils/filters";
import { defineNuxtPlugin } from "nuxt/app";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.config.globalProperties.$filters = filters;
});
2 changes: 1 addition & 1 deletion packages/nuxt/dist/runtime/plugins/set-theme-default.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: any;
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
export default _default;
1 change: 1 addition & 0 deletions packages/nuxt/dist/runtime/plugins/set-theme-default.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useThemeStore } from "@explorer-1/vue/src/store/theme";
import { defineNuxtPlugin } from "nuxt/app";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook("vue:setup", () => {
const useTheme = useThemeStore();
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/dist/runtime/plugins/set-theme-edu.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: any;
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
export default _default;
1 change: 1 addition & 0 deletions packages/nuxt/dist/runtime/plugins/set-theme-edu.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useThemeStore } from "@explorer-1/vue/src/store/theme";
import { defineNuxtPlugin } from "nuxt/app";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook("vue:setup", () => {
const useTheme = useThemeStore();
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/dist/runtime/plugins/set-theme-internal.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: any;
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
export default _default;
1 change: 1 addition & 0 deletions packages/nuxt/dist/runtime/plugins/set-theme-internal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useThemeStore } from "@explorer-1/vue/src/store/theme";
import { defineNuxtPlugin } from "nuxt/app";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook("vue:setup", () => {
const useTheme = useThemeStore();
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/dist/runtime/plugins/vue-click-outside.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: any;
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
export default _default;
1 change: 1 addition & 0 deletions packages/nuxt/dist/runtime/plugins/vue-click-outside.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import vClickOutside from "click-outside-vue3";
import { defineNuxtPlugin } from "nuxt/app";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(vClickOutside);
});
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
declare const _default: any;
declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
export default _default;
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import VueCompareImage from "vue3-compare-image";
import { defineNuxtPlugin } from "nuxt/app";
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueCompareImage);
});
2 changes: 2 additions & 0 deletions packages/nuxt/src/runtime/plugins/filters.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import filters from '@explorer-1/vue/src/utils/filters'
import { defineNuxtPlugin } from 'nuxt/app'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.config.globalProperties.$filters = filters
})
6 changes: 3 additions & 3 deletions packages/nuxt/src/runtime/plugins/set-theme-default.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// @ts-nocheck
import { useThemeStore } from '@explorer-1/vue/src/store/theme'
import { useThemeStore, type Explorer1Theme } from '@explorer-1/vue/src/store/theme'
import { defineNuxtPlugin } from 'nuxt/app'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('vue:setup', () => {
const useTheme = useThemeStore()
useTheme.setTheme('themeDefault')
useTheme.setTheme('themeDefault' as Explorer1Theme)
})
})
2 changes: 1 addition & 1 deletion packages/nuxt/src/runtime/plugins/set-theme-edu.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck
import { useThemeStore } from '@explorer-1/vue/src/store/theme'
import { defineNuxtPlugin } from 'nuxt/app'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('vue:setup', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/nuxt/src/runtime/plugins/set-theme-internal.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck
import { useThemeStore } from '@explorer-1/vue/src/store/theme'
import { defineNuxtPlugin } from 'nuxt/app'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.hook('vue:setup', () => {
Expand Down
3 changes: 2 additions & 1 deletion packages/nuxt/src/runtime/plugins/vue-click-outside.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// @ts-nocheck
// click-outside-vue3
// see: https://www.npmjs.com/package/click-outside-vue3
// used in navigation dropdown to detect clicks outside the dropdown area
// @ts-ignore
import vClickOutside from 'click-outside-vue3'
import { defineNuxtPlugin } from 'nuxt/app'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(vClickOutside)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-nocheck
import VueCompareImage from 'vue3-compare-image'
import { defineNuxtPlugin } from 'nuxt/app'

export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueCompareImage)
Expand Down
Loading

0 comments on commit a50b9be

Please sign in to comment.