Skip to content

Commit

Permalink
build: npx @tailwindcss/upgrade@next
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Jan 27, 2025
1 parent 519f9a9 commit 912346e
Show file tree
Hide file tree
Showing 19 changed files with 371 additions and 405 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"@highlightjs/vue-plugin": "^2.1.0",
"@modyfi/vite-plugin-yaml": "^1.0.4",
"@phosphor-icons/vue": "^2.2.1",
"@tailwindcss/postcss": "^4.0.0",
"@vitejs/plugin-vue": "^5",
"@vue/tsconfig": "^0.5.1",
"@vueuse/core": "^10.7.2",
"autoprefixer": "^10.4.7",
"axios": "^1",
"datatransfer-files-promise": "^2.0.0",
"es-toolkit": "^1.31.0",
Expand All @@ -34,7 +34,7 @@
"js-yaml": "^4.1.0",
"pinia": "^2.0.28",
"rollup-plugin-visualizer": "^5.6.0",
"tailwindcss": "^3.1.4",
"tailwindcss": "^4.0.0",
"typescript": "^5.3.3",
"vite": "^5",
"vue": "^3.4",
Expand Down
3 changes: 1 addition & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
'@tailwindcss/postcss': {},
},
};
4 changes: 2 additions & 2 deletions src/auth/SignupView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import PageTitle from "@/components/PageTitle.vue";
<PageTitle>{{ $t("signup") }}</PageTitle>
<div class="flex flex-wrap gap-6">
<LayoutSection
class="!mt-0 w-64 flex-grow"
class="mt-0! w-64 grow"
:title="$t('signup.existing.title')"
>
<p>
Expand All @@ -21,7 +21,7 @@ import PageTitle from "@/components/PageTitle.vue";
</p>
</LayoutSection>

<LayoutSection class="!mt-0 w-64 flex-grow" :title="$t('signup.new')">
<LayoutSection class="mt-0! w-64 grow" :title="$t('signup.new')">
<p>{{ $t("signup.new.create") }}</p>
<ol class="list-decimal pl-6">
<li>
Expand Down
2 changes: 1 addition & 1 deletion src/components/HelpBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defineProps<{

<template>
<div
class="my-2 rounded p-2 px-3 max-w-screen-sm"
class="my-2 rounded-sm p-2 px-3 max-w-(--breakpoint-sm)"
:class="
important
? 'bg-blue-100 border-2 border-blue-300 dark:bg-sky-900 dark:border-0 dark:text-sky-200'
Expand Down
2 changes: 1 addition & 1 deletion src/components/LayoutBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defineProps<{

<template>
<section
class="relative border rounded p-2 bg-white dark:bg-zinc-900 dark:border-zinc-700 overflow-hidden"
class="relative border rounded-sm p-2 bg-white dark:bg-zinc-900 dark:border-zinc-700 overflow-hidden"
>
<div class="flex justify-between mb-2">
<h2 v-if="title" class="text-xl font-semibold uppercase">{{ title }}</h2>
Expand Down
4 changes: 2 additions & 2 deletions src/components/ProgressBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const percentStr = computed(() =>

<template>
<div
class="inline-block bg-slate-500 rounded h-6 relative text-center overflow-hidden"
class="inline-block bg-slate-500 rounded-sm h-6 relative text-center overflow-hidden"
>
<div
class="bg-sborange-600 h-6 absolute"
:style="{ width: percent + '%' }"
></div>
<div class="font-semibold text-white relative z-10">
<span class="bg-zinc-700 bg-opacity-40 rounded px-1">
<span class="bg-zinc-700 bg-opacity-40 rounded-sm px-1">
{{ percentStr }}
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SyntaxHighlight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defineProps<{
:code
:language
:autodetect="false"
class="text-xs rounded whitespace-pre-wrap [overflow-wrap:anywhere]"
class="text-xs rounded-sm whitespace-pre-wrap [overflow-wrap:anywhere]"
/>
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/components/TerminalOutput.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<pre
tabindex="0"
class="bg-stone-800 text-lime-50 text-xs p-2 rounded whitespace-pre-wrap [overflow-wrap:anywhere]"
class="bg-stone-800 text-lime-50 text-xs p-2 rounded-sm whitespace-pre-wrap [overflow-wrap:anywhere]"
><slot /></pre>
</template>
4 changes: 2 additions & 2 deletions src/corpus/CorpusStateMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const {
<template>
<span
v-if="stateMessage"
class="text-white rounded px-2 py-0.5"
class="text-white rounded-sm px-2 py-0.5"
:class="[
isEmpty || isNeedingConfig || isNeedingMeta
? 'bg-yellow-700'
: isFailed
? 'bg-red-600'
: isReady
? 'bg-lime-700'
: '!text-inherit',
: 'text-inherit!',
]"
>
{{ stateMessage }}
Expand Down
2 changes: 1 addition & 1 deletion src/corpus/config/CorpusConfigCustomEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ watchEffect(() => (input.value = config.value || ""));

<PendingContent :on="`corpus/${corpusId}/config`" blocking>
<div class="flex gap-2 items-baseline my-2">
<div class="flex-grow"></div>
<div class="grow"></div>
<div v-if="!isValid" :title="$t('yaml.invalid')">
<PhFileX class="inline text-xl text-red-600" />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/corpus/exports/CorpusResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ loadExports();
<td colspan="2">{{ folder }}/</td>
</tr>
<tr v-for="file in exports_" :key="file.name">
<td class="!pl-6">
<td class="pl-6!">
<a href="#" @click.prevent="downloadResultFile(file.path)">
<PhDownloadSimple weight="fill" class="inline mb-0.5 mr-1" />
{{ file.path.split("/").slice(1).join("/") }}
Expand Down
2 changes: 1 addition & 1 deletion src/home/HomeNews.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function getDate(date: Date) {
<article
v-for="(item, i) in items"
:key="i"
class="w-96 bg-white dark:bg-zinc-800 shadow p-2 px-3 my-2"
class="w-96 bg-white dark:bg-zinc-800 shadow-sm p-2 px-3 my-2"
>
<header class="mb-2">
<h3 class="font-semibold">{{ th(item.title) }}</h3>
Expand Down
4 changes: 2 additions & 2 deletions src/home/HomeNewsFeatured.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ function getDate(date: Date) {
</script>

<template>
<div v-if="items.length" class="max-w-screen-md mx-auto">
<div v-if="items.length" class="max-w-(--breakpoint-md) mx-auto">
<article
v-for="(item, i) in items"
:key="i"
class="bg-sky-50 dark:bg-sky-800 shadow shadow-sky-200 dark:shadow-sky-600 text-sky-800 dark:text-sky-200 p-1 px-2 my-2"
class="bg-sky-50 dark:bg-sky-800 shadow-sm shadow-sky-200 dark:shadow-sky-600 text-sky-800 dark:text-sky-200 p-1 px-2 my-2"
>
<header class="font-semibold">{{ th(item.title) }}</header>

Expand Down
2 changes: 1 addition & 1 deletion src/home/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const logoutUrl = getLogoutUrl();

<div
v-if="payload && canUserWrite"
class="bg-sky-100 dark:bg-sky-900 p-4 rounded shadow-inner flex flex-wrap justify-center items-baseline gap-4"
class="bg-sky-100 dark:bg-sky-900 p-4 rounded-sm shadow-inner flex flex-wrap justify-center items-baseline gap-4"
>
<div>{{ $t("welcome", { name: payload.name }) }}</div>

Expand Down
Loading

0 comments on commit 912346e

Please sign in to comment.