diff --git a/src/frontend/src/App.vue b/src/frontend/src/App.vue index ca1e8a32f..9f8e804b2 100644 --- a/src/frontend/src/App.vue +++ b/src/frontend/src/App.vue @@ -1,9 +1,28 @@ \ No newline at end of file diff --git a/src/frontend/src/assets/main.css b/src/frontend/src/assets/main.css index d33396368..50bfefca1 100644 --- a/src/frontend/src/assets/main.css +++ b/src/frontend/src/assets/main.css @@ -110,6 +110,7 @@ h1 { font-size: clamp(1rem, 10vw, 4rem) !important; line-height: 1 !important; font-weight: 400 !important; + margin-top: 0; } h2 { @@ -120,7 +121,7 @@ h2 { .field-label { width: 100px; - font-size: 1rem; + font-size: .6em; color: black; } diff --git a/src/frontend/src/components/SnapshotList.vue b/src/frontend/src/components/SnapshotList.vue new file mode 100644 index 000000000..3f9b5ff02 --- /dev/null +++ b/src/frontend/src/components/SnapshotList.vue @@ -0,0 +1,106 @@ + + + \ No newline at end of file diff --git a/src/frontend/src/components/TableComponent.vue b/src/frontend/src/components/TableComponent.vue index 737b89cfa..5c9cbd721 100644 --- a/src/frontend/src/components/TableComponent.vue +++ b/src/frontend/src/components/TableComponent.vue @@ -7,14 +7,16 @@ :filter="filter" selection="single" v-model:selected="selected" - row-key="id" - :class="`q-mt-lg ${isMobile ? '' : '' }`" + :row-key="props.rowKey" + :class="'q-mt-lg'" flat bordered dense v-model:pagination="pagination" @request="onRequest" - :rows-per-page-options="[5,10,15,20,25,50,0]" + :tabindex="props.disableSelect ? '' : '0'" + @keydown="keydown" + :rows-per-page-options="props.showAll ? [0] : [5,10,15,20,25,50,0]" > -
+
-
-
- - -
-
- - -
-
- - -
- + + + + + + + + +
- - - - - - - {{ - new Intl.DateTimeFormat('en-US', { - year: '2-digit', - month: '2-digit', - day: '2-digit', - hour: 'numeric', - minute: 'numeric', - hour12: true - }).format(new Date(snapshot.snapshotCreatedOn)) - }} - - - - - - +
\ No newline at end of file diff --git a/src/frontend/src/router/index.ts b/src/frontend/src/router/index.ts index b7d16b2bd..7a3b15ff9 100644 --- a/src/frontend/src/router/index.ts +++ b/src/frontend/src/router/index.ts @@ -54,7 +54,8 @@ const router = createRouter({ }, { path: '/experiments/:id', - component: () => import('../views/CreateExperiment.vue') + component: () => import('../views/CreateExperiment.vue'), + meta: { type: 'experiments' } }, { path: '/groups', diff --git a/src/frontend/src/stores/LoginStore.ts b/src/frontend/src/stores/LoginStore.ts index 8e0bcd6f7..42e6ec350 100644 --- a/src/frontend/src/stores/LoginStore.ts +++ b/src/frontend/src/stores/LoginStore.ts @@ -44,11 +44,13 @@ export const useLoginStore = defineStore('login', () => { files: {}, }) + const showRightDrawer = ref(false) + const selectedSnapshot = ref() // computed()'s are getters // function()'s are actions - return { loggedInUser, loggedInGroup, groups, users, savedForms }; + return { loggedInUser, loggedInGroup, groups, users, savedForms, showRightDrawer, selectedSnapshot }; }) \ No newline at end of file diff --git a/src/frontend/src/views/CreateExperiment.vue b/src/frontend/src/views/CreateExperiment.vue index 7a959594c..1bb1c231c 100644 --- a/src/frontend/src/views/CreateExperiment.vue +++ b/src/frontend/src/views/CreateExperiment.vue @@ -1,8 +1,25 @@