Skip to content

Commit b1d55bc

Browse files
committed
chore: remove supabase hooks
1 parent 6f36fd4 commit b1d55bc

10 files changed

Lines changed: 3 additions & 163 deletions

File tree

docs/APPLICATION_FLOW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Each and every flow passes through the reactive stores. This dynamic allows the
2020
├── src/store
2121
├──── absolute.ts # Window's Controller
2222
├──── addons.ts # Internal Tools
23-
├──── auth.ts # Auth (Supabase)
23+
├──── auth.ts # Auth
2424
├──── context.ts # Loaded Chapter
2525
├──── docx.ts # DOCX Configuration
2626
├──── editor.ts # Customization Settings

packages/app/src/components/icons/IconSupabase.vue

Lines changed: 0 additions & 44 deletions
This file was deleted.

packages/app/src/components/page/editor/header/items/EditorBaseHeaderProject.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,10 @@
7070
import { useEnv } from '@/use/env'
7171
import { useI18n } from 'vue-i18n'
7272
import { useLocalStorage } from '@/use/storage/local'
73-
import { useSupabase } from '@/use/storage/supabase'
7473
7574
const ABSOLUTE = useAbsoluteStore()
7675
const PROJECT = useProjectStore()
7776
78-
const supabase = useSupabase()
7977
const project = useProject()
8078
const env = useEnv()
8179
const local = useLocalStorage()
@@ -86,10 +84,4 @@
8684
8785
local.onSaveProject()
8886
}
89-
90-
const onSaveProjectSupabase = () => {
91-
if (!confirm(t('editor.window.saveLocal'))) return
92-
93-
supabase.saveProject()
94-
}
9587
</script>

packages/app/src/components/page/editor/provider/ProviderEditor.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<EditorProjectNew v-if="ABSOLUTE.project.new" />
44
<EditorTutorial v-else-if="ABSOLUTE.project.tutorial" />
55
<EditorDevCMD v-else-if="ABSOLUTE.cmd" />
6-
<EditorAuthLogin v-else-if="ABSOLUTE.auth.supabase" />
76
<EditorEntityDefaultOptions v-else-if="ABSOLUTE.entity.menu" />
87
<EditorEntityDefaultComment v-else-if="ABSOLUTE.entity.comment" />
98
<EditorEntityDefaultCustomize v-else-if="ABSOLUTE.entity.customize" />

packages/app/src/env.d.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,11 @@ interface ImportMetaEnv {
2121
readonly VITE_GOOGLE_FONTS_KEY: string
2222
readonly VITE_GOOGLE_FONTS_MAX_FONTS: number
2323

24-
readonly VITE_SUPABASE_URL: string
25-
readonly VITE_SUPABASE_ANON_KEY: string
26-
27-
readonly VITE_SUPABASE_URL: string
28-
readonly VITE_SUPABASE_ANON_KEY: string
29-
readonly VITE_SENTRY_DSN: string
30-
3124
readonly VITE_BEGINEER_LIMIT: number
3225
readonly VITE_INTERMEDIATE_LIMIT: number
3326
readonly VITE_ADVANCED_LIMIT: number
3427
readonly VITE_CUSTOM_LIMIT: number
3528
readonly VITE_UNLIMITED_LIMIT: number
36-
37-
readonly VITE_LIVEBLOCKS_PUBLIC: string
38-
readonly VITE_LIVEBLOCKS_SECRET: string
3929
}
4030

4131
interface ImportMeta {

packages/app/src/store/absolute.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ export const useAbsoluteStore = defineStore('absolute', {
3434
docx: {
3535
configuration: false,
3636
},
37-
// deprecated
3837
auth: {
39-
supabase: false,
38+
user: false,
4039
},
4140
commands: false,
4241
load: false,

packages/app/src/use/storage/supabase.ts

Lines changed: 0 additions & 88 deletions
This file was deleted.

packages/languages/src/en-US.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,6 @@ export default {
237237
},
238238
},
239239
bar: {
240-
supabase: {
241-
load: 'Cloud Load',
242-
save: 'Cloud Save',
243-
},
244240
pdf: {
245241
preview: 'Preview (.PDF)',
246242
generate: 'Generate (.PDF)',

packages/languages/src/pt-BR.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,6 @@ export default {
236236
},
237237
},
238238
bar: {
239-
supabase: {
240-
load: 'Carregar da Nuvem',
241-
save: 'Salvar na Nuvem',
242-
},
243239
pdf: {
244240
preview: 'Simular (.PDF)',
245241
generate: 'Gerar (.PDF)',

packages/types/src/absolute.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface AbsoluteStateDOCX {
3232
}
3333

3434
export interface AbsoluteStateAuth {
35-
supabase: boolean
35+
user: boolean
3636
}
3737

3838
export interface AbsoluteStateEntity {

0 commit comments

Comments
 (0)