Skip to content

Commit

Permalink
fix: remove old bulma css
Browse files Browse the repository at this point in the history
  • Loading branch information
bayang committed Nov 27, 2023
1 parent 8cf0cd3 commit 277eaf9
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 44 deletions.
8 changes: 4 additions & 4 deletions src/jelu-ui/src/components/AddBook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ let displayDatepicker = computed(() => {

<template>
<section>
<div class="grid columns is-multiline">
<div class="grid sm:grid-cols-3 mb-4 sm:w-10/12 justify-center justify-items-center justify-self-center column is-offset-one-fifth is-three-fifths">
<div class="grid">
<div class="grid sm:grid-cols-3 mb-4 sm:w-10/12 justify-center justify-items-center justify-self-center">
<div />
<h1 class="text-2xl typewriter capitalize">
{{ t('nav.add_book') }}
Expand Down Expand Up @@ -507,7 +507,7 @@ let displayDatepicker = computed(() => {
</svg>
</div>
</div>
<div class="form-control sm:w-8/12 justify-self-center column is-two-thirds">
<div class="form-control sm:w-8/12 justify-self-center">
<div class="field mb-3">
<o-field
horizontal
Expand Down Expand Up @@ -990,7 +990,7 @@ let displayDatepicker = computed(() => {
v-else
horizontal
:label="t('labels.choose_file')"
class="file is-primary has-name"
class="file"
>
<input
type="file"
Expand Down
8 changes: 4 additions & 4 deletions src/jelu-ui/src/components/AdminAuthors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const rightDoD = computed(() => {
:clickable="false"
variant="success"
>
<h1 class="text-xl title has-text-centered">
<h1 class="text-xl">
{{ t('authors_merge.author_left_subtitle') }}
</h1>{{ t('authors_merge.author_left_description') }}
</o-step-item>
Expand All @@ -145,7 +145,7 @@ const rightDoD = computed(() => {
:clickable="false"
variant="success"
>
<h1 class="text-xl title has-text-centered">
<h1 class="text-xl">
{{ t('authors_merge.author_right_subtitle') }}
</h1>{{ t('authors_merge.author_right_description') }}
</o-step-item>
Expand All @@ -157,7 +157,7 @@ const rightDoD = computed(() => {
:clickable="false"
variant="success"
>
<h1 class="text-xl title has-text-centered">
<h1 class="text-xl">
{{ t('authors_merge.authors_merge_subtitle') }}
</h1>{{ t('authors_merge.authors_merge_description') }}
</o-step-item>
Expand Down Expand Up @@ -548,7 +548,7 @@ const rightDoD = computed(() => {
</div>
<div class="mt-2 col-span-2">
<button
class="btn btn-primary button is-primary is-light mb-4"
class="btn btn-primary mb-4"
:disabled="activeStep !== 'merge'"
@click="save"
>
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/AdminBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const sideBarWidth = ref(175)
</div>
</div>
<footer class="footer footer-center my-10">
<div class="content has-text-centered">
<div>
<p>
<strong>Jelu</strong> <a
href="https://github.com/bayang/jelu"
Expand Down
18 changes: 8 additions & 10 deletions src/jelu-ui/src/components/AuthorBooks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ getBooks()
</div>
</template>
</sort-filter-bar-vue>
<div class="grid columns is-multiline box">
<div class="grid items-center justify-center justify-items-center justify-self-center sm:grid-cols-3 mb-4 sm:w-10/12 column is-full">
<div class="grid">
<div class="grid items-center justify-center justify-items-center justify-self-center sm:grid-cols-3 mb-4 sm:w-10/12">
<div />
<div class="level-item">
<h2 class="text-2xl inline mr-2 typewriter">
Expand Down Expand Up @@ -270,7 +270,7 @@ getBooks()
><i class="mdi mdi-24px mdi-instagram" /></a>
</div>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 sm:gap-10 column is-one-fifth is-offset-one-fifth">
<div class="grid grid-cols-1 sm:grid-cols-2 sm:gap-10">
<div class="justify-self-center sm:justify-self-end">
<figure class="image">
<img
Expand All @@ -287,39 +287,37 @@ getBooks()
</figure>
</div>

<div class="column is-three-fifths content text-left w-11/12 sm:w-full justify-self-center sm:justify-self-start">
<div class="text-left w-11/12 sm:w-full justify-self-center sm:justify-self-start">
<p
v-if=" author.biography != null"
class="has-text-left"
>
<span class="font-semibold">{{ t('author.biography') }} :</span>
</p>
<p
class="has-text-left prose-base"
class="prose-base"
v-html="author.biography"
/>
<p
v-if="author.dateOfBirth"
class="has-text-left block"
class="block"
>
<span class="font-semibold">{{ t('author.date_of_birth') }} :</span>
{{ formatDate(author.dateOfBirth) }}
</p>
<p
v-if="author.dateOfDeath"
class="has-text-left block"
class="block"
>
<span class="font-semibold">{{ t('author.date_of_death') }} :</span>
{{ formatDate(author.dateOfDeath) }}
</p>
<p
v-if=" author.notes != null"
class="has-text-left"
>
<span class="font-semibold">{{ t('author.additional_notes') }} :</span>
</p>
<p
class="has-text-left prose-base"
class="prose-base"
v-html="author.notes"
/>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/jelu-ui/src/components/AutoImportFormModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,15 @@ function pluginsModalClosed() {

<template>
<section class="edit-modal">
<div class="grid justify-center justify-items-center columns is-centered is-multiline">
<div class="grid justify-center justify-items-center">
<div class="mb-2">
<h1 class="text-2xl typewriter capitalize">
{{ t('labels.import_book') }}
</h1>
</div>
<div
v-if="displayForm"
class="column is-centered is-full"
class="column"
>
<div class="field mb-2">
<o-field
Expand Down
4 changes: 2 additions & 2 deletions src/jelu-ui/src/components/BookCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ watch(checked, (newVal, oldVal) => {
<span
v-if="book.lastReadingEvent"
:class="eventClass"
class="badge is-capitalized is-family-sans-serif"
class="badge"
>{{ eventText }}</span>
<div class="flex">
<span
v-if="book.book.series && book.book.series.length > 0"
v-tooltip="book.book.series[0].name"
class="badge is-family-sans-serif mx-1"
class="badge mx-1"
>
#{{ book.book.series[0].numberInSeries }}
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/BookDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ getBook()
class="flex items-center flex-wrap"
>
<button
class="btn btn-primary btn-outline is-light mr-2 p-2"
class="btn btn-primary btn-outline mr-2 p-2"
@click="toggleEdit"
>
<span class="icon">
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/BookList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ try {
<h2 class="text-3xl typewriter capitalize">
{{ t('labels.library_empty') }}
</h2>
<span class="icon is-large">
<span class="icon">
<i class="mdi mdi-book-open-page-variant-outline mdi-48px" />
</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/jelu-ui/src/components/EditAuthorModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ const fillFormWithEntry = (entry: WikipediaSearchResultElement) => {
<o-field
v-else
:label="t('labels.choose_file')"
class="file is-primary has-name"
class="file"
>
<input
type="file"
Expand Down Expand Up @@ -460,7 +460,7 @@ const fillFormWithEntry = (entry: WikipediaSearchResultElement) => {
v-for="res in searchResult.pages"
:key="res.id"
v-tooltip="t('labels.click_to_import')"
class="card card-side box mb-2 shadow-lg shadow-base-300 hover:shadow-2xl hover:border-2 hover:border-accent"
class="card card-side mb-2 shadow-lg shadow-base-300 hover:shadow-2xl hover:border-2 hover:border-accent"
@click="fillFormWithEntry(res)"
>
<figure
Expand Down
4 changes: 2 additions & 2 deletions src/jelu-ui/src/components/EditBookModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ function toggleRemoveImage() {
v-else
horizontal
:label="t('labels.choose_file')"
class="file is-primary has-name"
class="file"
>
<input
type="file"
Expand All @@ -726,7 +726,7 @@ function toggleRemoveImage() {
</o-field>
</div>
</div>
<div class="column is-centered is-one-fifth flex flex-row justify-center pt-6">
<div class="flex flex-row justify-center pt-6">
<button
class="btn btn-primary"
:class="{'btn-disabled' : progress}"
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/Imports.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ watch(file, (newVal, oldVal) => {
<o-field
horizontal
:label="t('csv_import.choose_file')"
class="file is-primary has-name"
class="file"
>
<input
type="file"
Expand Down
4 changes: 2 additions & 2 deletions src/jelu-ui/src/components/ProfilePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ const shelves = computed(() => {
<strong>{{ store.getters.getUsername }}</strong>
<br>
<span class="capitalize">{{ t('settings.role', 2) }}</span> :
<span class="badge badge-info tag is-info">USER</span> &nbsp;
<span class="badge badge-info tag">USER</span> &nbsp;
<span
v-if="store.getters.isAdmin"
class="badge badge-warning tag is-warning"
class="badge badge-warning tag"
>ADMIN</span>
</p>
<div class="card-actions justify-end">
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/QuotesDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ catch (err) {
:key="quote.content"
>
<div class="mb-8">
<p class="is-size-7">
<p>
{{ quote.content }}
</p>
<br>
Expand Down
6 changes: 2 additions & 4 deletions src/jelu-ui/src/components/ScanModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,13 @@ const onDecode = (text: string) => {

<template>
<section class="edit-modal">
<div class="grid justify-center justify-items-center columns is-centered is-multiline">
<div class="grid justify-center justify-items-center">
<div class="mb-2">
<h1 class="text-2xl typewriter capitalize">
{{ t('labels.import_book') }}
</h1>
</div>
<div
class="column is-centered is-full"
>
<div>
<div class="field mb-2">
<StreamBarcodeReader
@decode="onDecode"
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/SeriesBooks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ getBooks()
:animated="true"
/>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-8 gap-1 is-flex is-flex-wrap-wrap is-justify-content-space-evenly my-3">
<div class="grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-8 gap-1 my-3">
<div
v-for="book in convertedBooks"
:key="book.book.id"
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/TagBooks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ getBooks()
:animated="true"
/>
</div>
<div class="grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-8 gap-1 is-flex is-flex-wrap-wrap is-justify-content-space-evenly my-3">
<div class="grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-8 gap-1 my-3">
<div
v-for="book in convertedBooks"
:key="book.book.id"
Expand Down
4 changes: 2 additions & 2 deletions src/jelu-ui/src/components/ToReadList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ getToRead()
</div>
<div
v-if="books.length > 0"
class="is-flex is-flex-wrap-wrap is-justify-content-center grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-8 gap-0 my-3"
class="grid grid-cols-2 md:grid-cols-4 xl:grid-cols-6 2xl:grid-cols-8 gap-0 my-3"
>
<div
v-for="book in books"
Expand Down Expand Up @@ -302,7 +302,7 @@ getToRead()
<h2 class="text-3xl typewriter">
{{ t('labels.nothing_to_read') }}
</h2>
<span class="icon is-large">
<span class="icon">
<i class="mdi mdi-book-open-page-variant-outline mdi-48px" />
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/jelu-ui/src/components/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ function toggleReadingEventModal(currentEvent: ReadingEvent, edit: boolean) {
<h2 class="text-3xl typewriter">
{{ t('home.not_reading') }}
</h2>
<span class="icon is-large">
<span class="icon">
<i class="mdi mdi-book-open-page-variant-outline mdi-48px" />
</span>
</div>
Expand Down
2 changes: 0 additions & 2 deletions src/jelu-ui/src/router.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { createRouter, createWebHistory } from 'vue-router'
import store from './store'
import AdminBaseVue from './components/AdminBase.vue'
// import ProfilePageVue from './components/ProfilePage.vue'
// import AdminAuthorsVue from './components/AdminAuthors.vue'

const isLogged = () => {
if (!store.getters.getLogged) {
Expand Down

0 comments on commit 277eaf9

Please sign in to comment.