Skip to content

Commit 900403d

Browse files
committed
more client
1 parent 6f03339 commit 900403d

53 files changed

Lines changed: 370 additions & 459 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
build/
55
server/data/corpora/
66
.env
7+
node_modules/
8+
dist/

client/.dockerignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
dist
2-
node_modules
1+
dist/
2+
node_modules/
3+
.vscode/

client/.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/.gitignore

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

client/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ declare module 'vue' {
3838
GSelect: typeof import('./src/components/input/GSelect.vue')['default']
3939
GSpinner: typeof import('./src/components/GSpinner.vue')['default']
4040
GTable: typeof import('./src/components/tables/GTable.vue')['default']
41+
GTablePaginator: typeof import('./src/components/tables/GTablePaginator.vue')['default']
4142
GTabs: typeof import('./src/components/GTabs.vue')['default']
4243
GValidator: typeof import('./src/components/input/GValidator.vue')['default']
4344
HelpLink: typeof import('./src/components/links/HelpLink.vue')['default']

client/docker-compose.yml

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

client/src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99
</template>
1010
</GTabs>
1111

12-
<GModal :show="errorsStore.errors.length > 0" title="Ocharme!" @hide="errorsStore.resetErrors">
12+
<GModal :show="errors.errors.length > 0" title="Ocharme!" @hide="errors.reset">
1313
<p>
1414
Please try again or contact
1515
<MailAddress /> for support.
1616
</p>
17-
<GInfo v-for="(error, i) in errorsStore.errors" :key="i" error>{{ error }}</GInfo>
17+
<GInfo v-for="(error, i) in errors.errors" :key="i" error>{{ error }}</GInfo>
1818
</GModal>
1919
</template>
2020

2121
<script setup lang="ts">
2222
import stores from "@/stores"
2323
24-
const errorsStore = stores.useErrors()
24+
const errors = stores.useErrors()
2525
const userStore = stores.useUser()
2626
2727
onMounted(() => {

client/src/api/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ export function browserDownloadResponseFile(response: BlobResponse): void {
4343
* https://medium.com/@fakiolinho/handle-blobs-requests-with-axios-the-right-way-bb905bdb1c04
4444
* @param error Axios error.
4545
* @param intent Human readable explanation.
46-
* @param app appStore.
46+
* @param errors errorStore.
4747
*/
4848
export function handleBlobError(
4949
error: AxiosError<Blob>,
5050
intent: string,
51-
app: any,
51+
errors: any,
5252
): void {
5353
const reader = new FileReader()
5454
// Setup the onload that fires after reading.
@@ -59,7 +59,7 @@ export function handleBlobError(
5959
data: json,
6060
},
6161
} as AxiosError<ErrorMessage>
62-
app.handleServerError(intent, errObj)
62+
errors.handle(intent, errObj)
6363
}
6464
// Now, read.
6565
reader.readAsText(error.response?.data as Blob)

client/src/components/GSpinner.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const classes = {
2121

2222
<style scoped lang="scss">
2323
.icon {
24+
position: absolute;
2425
height: 40px;
2526
width: 40px;
2627
animation: spin 4s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;

client/src/components/input/GButton.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ button {
7676
7777
&.plain {
7878
background-color: var(--white);
79+
border: 1px solid var(--int-grey);
7980
}
8081
8182
// Only use hover & active when not disabled.

0 commit comments

Comments
 (0)