From 83ae82005407a4062829f8afc61f65896516a15b Mon Sep 17 00:00:00 2001 From: JakePIXL Date: Tue, 28 Nov 2023 14:04:08 -0500 Subject: [PATCH] actually fixed feeback system (#21) --- .DS_Store | Bin 0 -> 8196 bytes Cargo.lock | 4 +- teller/Cargo.toml | 2 +- teller/src/.DS_Store | Bin 0 -> 6148 bytes teller/src/handlers/.DS_Store | Bin 0 -> 6148 bytes teller/src/handlers/player.rs | 1 - teller/src/handlers/world.rs | 4 +- teller/src/types/.DS_Store | Bin 0 -> 6148 bytes teller_desktop/package.json | 2 +- teller_desktop/src-tauri/Cargo.toml | 2 +- teller_desktop/src-tauri/tauri.conf.json | 2 +- .../src/lib/modals/feedback_modal.svelte | 16 +- .../src/lib/modals/settings_modal.svelte | 2 +- teller_desktop/src/lib/stores/feedback.ts | 2 +- teller_desktop/tailwind.config.js | 214 +++++++++--------- 15 files changed, 127 insertions(+), 124 deletions(-) create mode 100644 .DS_Store create mode 100644 teller/src/.DS_Store create mode 100644 teller/src/handlers/.DS_Store create mode 100644 teller/src/types/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..74934ae8927ec66726768ae6c24578965e851998 GIT binary patch literal 8196 zcmeHMPj3=I9Q_R-EF~%jO&Sy9CSDsXZJKJlP@sn<>Y*4ts6n=D+6~JN*wtB@I`B6*fHhl$bIH1|dTq82SO@+~2gLos zMG@H0I9Did9Y}Hu04$(c29D*UKhPBoz=p=TLbM>5k^+^K=`9A+I|ruZ=x=ELT%nQ^ zlOy9idSs?|C`@lWm@DbT8VYT;4p;|P9T0o>0@di00!p*{_xu<1)qcv5!qS3AXEY`+ z%P!nA*c(fBfU`%$DJI|0d@?je>QRD^Pbno?E*%)$4QhcMy&3d+{q# zd(L_2EslHMi@=|BtG8M_N_#=%$5IgVeNbM%45B`tH2FB{CsNx{9ZuOPcdK`%(|Ub( zZ_C}?+nH^-)B3|lsO;BwX0x($`~HK+$K63VjQB^)0KxRFp02CY_K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ggSsOG{|E#byl@5n GRDo}Lp

Main Settings

- v0.2.5 + v0.2.6

Instances

diff --git a/teller_desktop/src/lib/stores/feedback.ts b/teller_desktop/src/lib/stores/feedback.ts index c5991f9..d83212b 100644 --- a/teller_desktop/src/lib/stores/feedback.ts +++ b/teller_desktop/src/lib/stores/feedback.ts @@ -1,7 +1,7 @@ import { writable, derived } from 'svelte/store'; const lastFeedbackTime = writable(0); -const timeLimit = 300000; // 5 minutes in milliseconds +const timeLimit = 180000; // 3 minutes in milliseconds export const canSubmit = derived(lastFeedbackTime, ($lastFeedbackTime) => { const now = Date.now(); diff --git a/teller_desktop/tailwind.config.js b/teller_desktop/tailwind.config.js index 72d0363..96567b9 100644 --- a/teller_desktop/tailwind.config.js +++ b/teller_desktop/tailwind.config.js @@ -1,117 +1,117 @@ -import colors from "tailwindcss/colors"; +import colors from 'tailwindcss/colors'; const accent = { - 100: "#f3e8d5", - 300: "#f2d5ae", - 500: "#d6af7b", - 700: "#b38853", - 900: "#8c5e29", + 100: '#f3e8d5', + 300: '#f2d5ae', + 500: '#d6af7b', + 700: '#b38853', + 900: '#8c5e29' }; const gray = { - 100: "#f3f4f6", - 300: "#e1e4e8", - 500: "#c0c7cf", - 700: "#9fa4ad", - 900: "#151319", + 100: '#f3f4f6', + 300: '#e1e4e8', + 500: '#c0c7cf', + 700: '#9fa4ad', + 900: '#151319' }; /** @type {import('tailwindcss').Config} */ export default { - content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"], - daisyui: { - themes: [ - { - light: { - primary: "#4ade80", - secondary: "#dc7efc", - accent: "#f2d5ae", - neutral: "#1B1D2C", - "base-100": "#f3f4f6", - info: "#44B1E4", - success: "#19A38C", - warning: "#AB7D07", - error: "#E4255E", - "--rounded-box": "0rem", - "--rounded-btn": "0rem", - "--rounded-badge": "0rem", - "--animation-btn": "0.25s", - "--animation-input": "0.2s", - "--btn-text-case": "uppercase", - "--btn-focus-scale": "1", - "--border-btn": "1px", - "--tab-border": "1px", - "--tab-radius": "0rem", - "--shadow-btn": "0px 4px 0px 0px rgba(0,0,0,1)", - "--shadow-default": "0px 4px 0px 0px rgba(0,0,0,1)", - }, - dark: { - primary: "#4ade80", - secondary: "#dc7efc", - accent: "#f2d5ae", - neutral: "#F7F5F8", - "base-100": "#151319", - info: "#44B1E4", - success: "#19A38C", - warning: "#AB7D07", - error: "#E4255E", - "--rounded-box": "0rem", - "--rounded-btn": "0rem", - "--rounded-badge": "0rem", - "--rounded-progress": "0rem", - "--animation-btn": "0.25s", - "--animation-input": "0.2s", - "--btn-text-case": "uppercase", - "--btn-focus-scale": "1", - "--border-btn": "1px", - "--tab-border": "1px", - "--tab-radius": "0rem", - "--shadow-btn": "0px 4px 0px 0px rgba(255,255,255,1)", - "--shadow-default": "0px 4px 0px 0px rgba(255,255,255,1)", - }, - }, - "cupcake", - ], - darkTheme: "dark", - darkMode: "class", - }, - theme: { - extend: { - backgroundColor: ["selection"], - textColor: ["selection"], - dropShadow: { - neu: "0px 4px 0px 0px black;", - "neu-light": "0px 4px 0 #3d3a44", - "neu-pressed": "0px 2px 0 black", - "neu-pressed-dark": "0px 2px 0 #3D3A44", - "neu-card": "0px 4px 0 black", - }, - boxShadow: { - neu: "0px 4px 0px 0px rgba(0, 0, 0, 1);", - "neu-light": "0px 4px 0 #3d3a44", - "neu-pressed": "0px 2px 0 rgba(0, 0, 0, 1)", - "neu-card": "0px 4px 0 black", - }, - borderColor: { - dark: "#3D3A44", - }, - width: { - 120: "30rem", - 144: "36rem", - }, - colors: { - // Your preferred accent color. Indigo is closest to Starlight’s defaults. - accent: accent, - // Your preferred gray scale. Zinc is closest to Starlight’s defaults. - gray: gray, - }, - fontFamily: { - // Your preferred text font. Starlight uses a system font stack by default. - sans: ['"Atkinson Hyperlegible"'], - // Your preferred code font. Starlight uses system monospace fonts by default. - mono: ['"IBM Plex Mono"'], - }, - }, - }, - plugins: [require("daisyui")], + content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], + daisyui: { + themes: [ + { + light: { + primary: '#4ade80', + secondary: '#dc7efc', + accent: '#f2d5ae', + neutral: '#1B1D2C', + 'base-100': '#f3f4f6', + info: '#44B1E4', + success: '#19A38C', + warning: '#AB7D07', + error: '#E4255E', + '--rounded-box': '0rem', + '--rounded-btn': '0rem', + '--rounded-badge': '0rem', + '--animation-btn': '0.25s', + '--animation-input': '0.2s', + '--btn-text-case': 'uppercase', + '--btn-focus-scale': '1', + '--border-btn': '1px', + '--tab-border': '1px', + '--tab-radius': '0rem', + '--shadow-btn': '0px 4px 0px 0px rgba(0,0,0,1)', + '--shadow-default': '0px 4px 0px 0px rgba(0,0,0,1)' + }, + dark: { + primary: '#4ade80', + secondary: '#dc7efc', + accent: '#f2d5ae', + neutral: '#F7F5F8', + 'base-100': '#151319', + info: '#44B1E4', + success: '#19A38C', + warning: '#AB7D07', + error: '#E4255E', + '--rounded-box': '0rem', + '--rounded-btn': '0rem', + '--rounded-badge': '0rem', + '--rounded-progress': '0rem', + '--animation-btn': '0.25s', + '--animation-input': '0.2s', + '--btn-text-case': 'uppercase', + '--btn-focus-scale': '1', + '--border-btn': '1px', + '--tab-border': '1px', + '--tab-radius': '0rem', + '--shadow-btn': '0px 4px 0px 0px rgba(255,255,255,1)', + '--shadow-default': '0px 4px 0px 0px rgba(255,255,255,1)' + } + }, + 'cupcake' + ], + darkTheme: 'dark', + darkMode: 'class' + }, + theme: { + extend: { + backgroundColor: ['selection'], + textColor: ['selection'], + dropShadow: { + neu: '0px 4px 0px 0px black;', + 'neu-light': '0px 4px 0 #3d3a44', + 'neu-pressed': '0px 2px 0 black', + 'neu-pressed-dark': '0px 2px 0 #3D3A44', + 'neu-card': '0px 4px 0 black' + }, + boxShadow: { + neu: '0px 4px 0px 0px rgba(0, 0, 0, 1);', + 'neu-light': '0px 4px 0 #3d3a44', + 'neu-pressed': '0px 2px 0 rgba(0, 0, 0, 1)', + 'neu-card': '0px 4px 0 black' + }, + borderColor: { + dark: '#3D3A44' + }, + width: { + 120: '30rem', + 144: '36rem' + }, + colors: { + // Your preferred accent color. Indigo is closest to Starlight’s defaults. + accent: accent, + // Your preferred gray scale. Zinc is closest to Starlight’s defaults. + gray: gray + }, + fontFamily: { + // Your preferred text font. Starlight uses a system font stack by default. + sans: ['"Atkinson Hyperlegible"'], + // Your preferred code font. Starlight uses system monospace fonts by default. + mono: ['"IBM Plex Mono"'] + } + } + }, + plugins: [require('daisyui')] };