-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Use genesis as backend service
- Loading branch information
Showing
56 changed files
with
1,198 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# Google credentials | ||
OAUTH_URI= | ||
OAUTH_CLIENT_ID= | ||
OAUTH_SCOPE=https://www.googleapis.com/auth/drive.appdata | ||
# Backend host, usually /api if hosted locally and used via proxy | ||
# See https://github.com/simonwep/genesis | ||
OCULAR_GENESIS_HOST=/api | ||
|
||
# Ackee tracker details | ||
ACKEE_HOST= | ||
ACKEE_DOMAIN_ID= | ||
# Optional, pre-filled login credentials for local testing | ||
OCULAR_TEST_USERNAME= | ||
OCULAR_TEST_PASSWORD= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type AlertType = 'error' | 'success' | 'warning'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<p :class="[$style.alert, classes]"> | ||
<Icon :class="$style.icon" :icon="mapping[type][1]" /> | ||
<span>{{ text }}</span> | ||
</p> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { computed } from 'vue'; | ||
import { AlertType } from '@components/base/alert/Alert.types'; | ||
import { AppIcon } from '@components/base/icon/Icon.types'; | ||
import Icon from '@components/base/icon/Icon.vue'; | ||
import { Color, useThemeStyles } from '@composables'; | ||
import { ClassNames } from '@utils'; | ||
const props = defineProps<{ | ||
class?: ClassNames; | ||
text: string; | ||
type: AlertType; | ||
}>(); | ||
const mapping: Record<AlertType, [Color, AppIcon]> = { | ||
error: ['danger', 'error-warning-line'], | ||
success: ['success', 'check'], | ||
warning: ['warning', 'error-warning-line'] | ||
}; | ||
const classes = computed(() => props.class); | ||
const theme = useThemeStyles(() => mapping[props.type][0]); | ||
</script> | ||
|
||
<style lang="scss" module> | ||
.alert { | ||
display: flex; | ||
gap: 4px; | ||
color: v-bind('theme.color.base'); | ||
border: 2px dashed v-bind('theme.color.base'); | ||
padding: 4px 6px; | ||
font-weight: var(--font-weight-l); | ||
font-size: var(--font-size-xs); | ||
border-radius: var(--border-radius-m); | ||
.icon { | ||
width: 17px; | ||
flex-shrink: 0; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.