@@ -591,8 +587,8 @@
class="text-gray-900 bg-white border border-gray-300 focus:outline-none hover:bg-gray-100 focus:ring-4
focus:ring-gray-100 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-gray-800 dark:text-white
dark:border-gray-600 dark:hover:bg-gray-700 dark:hover:border-gray-600 dark:focus:ring-gray-700"
- on:click={hide}>
- Cancel
+ on:click={() => pop()}>
+ Back
diff --git a/frontend/src/routes/Home.svelte b/frontend/src/routes/Home.svelte
new file mode 100644
index 0000000..0a91b3d
--- /dev/null
+++ b/frontend/src/routes/Home.svelte
@@ -0,0 +1,25 @@
+
+{#if isAniListLoggedIn && isAniListPrimary}
+
+{:else}
+
+{/if}
\ No newline at end of file
diff --git a/frontend/src/star-rating/Stars.svelte b/frontend/src/star-rating/Stars.svelte
new file mode 100644
index 0000000..1f68b3d
--- /dev/null
+++ b/frontend/src/star-rating/Stars.svelte
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+ {#each Array(config.countStars) as star, id}
+ {#if Math.floor(config.score) === id}
+
+ {:else if Math.floor(config.score) > id}
+
+ {:else}
+
+ {/if}
+ {/each}
+
+
+
+ {#if config.showScore}
+
+ {#if config.scoreFormat}
+ {config.scoreFormat()}
+ {:else}
+ ({((config.score/config.countStars)*100).toFixed(2)}%)
+ {/if}
+
+ {/if}
+
+
+
\ No newline at end of file
diff --git a/frontend/src/star-rating/components/Star.svelte b/frontend/src/star-rating/components/Star.svelte
new file mode 100644
index 0000000..046cc19
--- /dev/null
+++ b/frontend/src/star-rating/components/Star.svelte
@@ -0,0 +1,21 @@
+
+
+
\ No newline at end of file
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index 69576c6..f5a53e6 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -1,24 +1,45 @@
/** @type {import('tailwindcss').Config} */
export default {
- content: [
- "./index.html",
- "./src/**/*.{svelte,js,ts,jsx,tsx}",
- "./node_modules/flowbite/**/*.{html,js,svelte,ts}",
- "./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}",
- ],
- plugins: [
- require('flowbite/plugin')
- ],
+ content: [
+ "./index.html",
+ "./src/**/*.{svelte,js,ts,jsx,tsx}",
+ "./node_modules/flowbite/**/*.{html,js,svelte,ts}",
+ "./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}",
+ ],
+ plugins: [
+ require('flowbite/plugin')
+ ],
- darkMode: 'media',
+ darkMode: 'media',
- theme: {
- extend: {
- colors: {
- // flowbite-svelte
- primary: { 50: '#FFF5F2', 100: '#FFF1EE', 200: '#FFE4DE', 300: '#FFD5CC', 400: '#FFBCAD', 500: '#FE795D', 600: '#EF562F', 700: '#EB4F27', 800: '#CC4522', 900: '#A5371B'},
- }
+ theme: {
+ container: {
+ center: true,
+ padding: {
+ DEFAULT: '1rem',
+ sm: '2rem',
+ lg: '4rem',
+ xl: '5rem',
+ '2xl': '6rem',
+ },
+ },
+ extend: {
+ colors: {
+ // flowbite-svelte
+ primary: {
+ 50: '#FFF5F2',
+ 100: '#FFF1EE',
+ 200: '#FFE4DE',
+ 300: '#FFD5CC',
+ 400: '#FFBCAD',
+ 500: '#FE795D',
+ 600: '#EF562F',
+ 700: '#EB4F27',
+ 800: '#CC4522',
+ 900: '#A5371B'
+ },
+ }
+ }
}
- }
}
diff --git a/frontend/wailsjs/runtime/package.json b/frontend/wailsjs/runtime/package.json
old mode 100755
new mode 100644
diff --git a/frontend/wailsjs/runtime/runtime.d.ts b/frontend/wailsjs/runtime/runtime.d.ts
old mode 100755
new mode 100644
diff --git a/frontend/wailsjs/runtime/runtime.js b/frontend/wailsjs/runtime/runtime.js
old mode 100755
new mode 100644