-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* On the way to working prototype * A few more fixes * Fix graphql server * Put server again at /api * Convert tailwind-vue config to variantjs * Fix config * Fix all lint errors * Fix eslint * Fix typescript errors * Upgrade vue-jest * Fix imports * Fix tests * Fix config of redis * Move favicon to public folder * Pinia is now compatible with esm * Use layout with named slots * Add t-nuxtlink * Remove apollo client from transpile * Remove vue-tailwind from transpile (no longer used) * Remove more transpile and externals * Use auto-imports * More auto-imports * Cleanup config * Towards prototype storybook * Working prototype * Cleanup * Cleanup deps * Fix build * Fix variantjs config * Disable ssr for now * Try to fix storybook * Try to fix HMR * Enough to forward 24xxx port? * Use new vue3 way to wrap components * Fix sidebar * Remove virtual scoller for now * Make storybook prototype work * Add typescript info to story * Fix typescript for story * Fix typescript error in iframe * Update patches to match new versions * Clarify that port for hmr is not working * Update to nuxt rc3 * Remove nuxt types package * Fix issues related to tailwindcss module * Completely remove nuxt/types * Try to fix storybook ci * Fix tests * Build storybook seperatly * Try to fix storybook * Alias * Add event handler * Put graphql server again at /api * Add note about takeover mode * Fix storybook imports * Simple data table as start * Fix ts * Add storybook style * Remove unused storybook iframe * Update lock file * Add padding to input * Try to add alias * Fix ttable import * Add storybook stories for all components * Fix table import * Fix more controls * Add t-table synonym * Add styleing to table * Fix style * Cleanup nuxt config * Add remark in storybook modue that this is unfinished work * Fix style
- Loading branch information
1 parent
085beea
commit 87d5713
Showing
124 changed files
with
3,426 additions
and
6,482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { Meta, Story } from '@storybook/vue3' | ||
import JabRefLogo from './JabrefLogo.vue' | ||
|
||
export default { | ||
title: 'JabRef Logo', | ||
component: JabRefLogo, | ||
} | ||
} as Meta | ||
|
||
export const Default = () => ({ | ||
export const Default: Story = () => ({ | ||
components: { JabRefLogo }, | ||
template: '<JabRefLogo />', | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!-- Simle table, needed as long as variantjs doesn't provide one https://github.com/variantjs/vue/issues/26 --> | ||
<template> | ||
<table :class="tableClass"> | ||
<thead> | ||
<tr> | ||
<th | ||
v-for="header in headers" | ||
:key="header" | ||
:class="headerClass" | ||
> | ||
{{ header }} | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody :class="tbodyClass"> | ||
<tr | ||
v-for="(row, index) in data" | ||
:key="index" | ||
> | ||
<td | ||
v-for="cell in row" | ||
:key="cell" | ||
:class="tdClass" | ||
> | ||
{{ cell }} | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</template> | ||
<script lang="ts" setup> | ||
interface Props { | ||
headers?: string[] | ||
data?: any[] | ||
variant?: string | ||
} | ||
const props = withDefaults(defineProps<Props>(), { | ||
headers: () => [], | ||
data: () => [], | ||
variant: '', | ||
}) | ||
let tableClass = | ||
'min-w-full divide-y divide-gray-100 shadow-sm border-gray-200 border' | ||
const headerClass = 'px-3 py-2 font-semibold text-left bg-gray-100 border-b' | ||
let tbodyClass = 'bg-white divide-y divide-gray-100' | ||
let tdClass = 'px-3 py-2 whitespace-no-wrap' | ||
if (props.variant === 'plain') { | ||
tableClass = '' | ||
tbodyClass = 'bg-transparent' | ||
tdClass = 'px-3 py-1 whitespace-no-wrap' | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.