Skip to content

Commit

Permalink
feat: bump storybook version to 7 (#1091) (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Jul 31, 2023
1 parent d8785cb commit bfec8a8
Show file tree
Hide file tree
Showing 29 changed files with 16,135 additions and 44,860 deletions.
2 changes: 1 addition & 1 deletion cases/vueapp/src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const connectTopRowControls = () => {
)
}
const elem = $('#vueapp-filtration-complexity-mode')
if (elem) {
if (elem && elem.val(newValue)) {
elem.val(newValue).change()
}
}
Expand Down
2 changes: 1 addition & 1 deletion cases/vueapp/tests/unit/cases/CaseListPaneCases.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe('CaseListPaneCases.vue', () => {
// Disable warnings
vi.spyOn(console, 'warn').mockImplementation(vi.fn())
// Set reproducible time
vi.useFakeTimers('modern')
vi.useFakeTimers()
vi.setSystemTime(new Date(2020, 3, 1))
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('SubmissionSetList.vue', () => {
// Disable warnings
vi.spyOn(console, 'warn').mockImplementation(vi.fn())
// Set reproducible time
vi.useFakeTimers('modern')
vi.useFakeTimers()
vi.setSystemTime(new Date(2020, 3, 1))
// Mock out jquery dollar function for showing modals
global.$ = vi.fn()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('actions', () => {
// Disable warnings
vi.spyOn(console, 'warn').mockImplementation(vi.fn())
// Set reproducible time
vi.useFakeTimers('modern')
vi.useFakeTimers()
vi.setSystemTime(new Date(2020, 3, 1))
})

Expand Down
2 changes: 1 addition & 1 deletion svs/vueapp/src/components/SvFilterResultsTable.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup>
import sortBy from 'sort-by'
import sortBy from 'sort-by-typescript'
import { computed, onBeforeMount, onMounted, watch, ref } from 'vue'
import EasyDataTable from 'vue3-easy-data-table'
Expand Down
2 changes: 1 addition & 1 deletion utils/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN git clone --depth 1 --branch $WORKER_GIT_TREEISH $WORKER_GIT_URL \
# NodeJS Base Image
# ---------------------------------------------------------------------------

FROM node:16-slim AS node-base
FROM node:20-slim AS node-base

ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
Expand Down
2 changes: 1 addition & 1 deletion utils/install_vue_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
echo "***********************************************"
echo "Installing Node.js"
echo "***********************************************"
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
12 changes: 10 additions & 2 deletions varfish/vueapp/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@ module.exports = {
'simple-import-sort/exports': 'error',
'no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
},
ignorePatterns: ['static/**'],
extends: ['eslint:recommended', 'plugin:vue/vue3-recommended', 'prettier'],
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'prettier',
'plugin:storybook/recommended',
],
root: true,
env: {
node: true,
Expand Down
45 changes: 0 additions & 45 deletions varfish/vueapp/.storybook/main.js

This file was deleted.

18 changes: 18 additions & 0 deletions varfish/vueapp/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import type { StorybookConfig } from '@storybook/vue3-vite'

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
],
framework: {
name: '@storybook/vue3-vite',
options: {},
},
docs: {
autodocs: false,
},
}
export default config
21 changes: 0 additions & 21 deletions varfish/vueapp/.storybook/preview.js

This file was deleted.

15 changes: 15 additions & 0 deletions varfish/vueapp/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import type { Preview } from '@storybook/vue3'

const preview: Preview = {
parameters: {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
}

export default preview
10 changes: 5 additions & 5 deletions varfish/vueapp/components.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'

export {}

declare module '@vue/runtime-core' {
declare module 'vue' {
export interface GlobalComponents {
IBiExclamationCircle: typeof import('~icons/bi/exclamation-circle')['default']
ICilLinkBroken: typeof import('~icons/cil/link-broken')['default']
Expand Down
Loading

0 comments on commit bfec8a8

Please sign in to comment.