diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..479993c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "semi": true, + "singleQuote": false, + "printWidth": 120 +} diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..d1987c7 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,13 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp + + // List of extensions which should be recommended for users of this workspace. + "recommendations": [ + + ], + // List of extensions recommended by VS Code that should not be recommended for users of this workspace. + "unwantedRecommendations": [ + + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index b92b3ac..65c7960 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.formatOnSave": true - } \ No newline at end of file + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.formatOnSave": true, + "prettier.singleQuote": false +} diff --git a/app.js b/app.js index adc6a7e..57620cb 100644 --- a/app.js +++ b/app.js @@ -13,7 +13,7 @@ const buildApp = async (serverOptions) => { const app = Fastify(serverOptions); try { - // Register the defaul authc plugins and routes + // Register the default authc plugins and routes await app .register(sqlite3) .register(serverkey) diff --git a/client/admin/dashboardPage.html b/client/admin/dashboardPage.html index f92384f..4163b13 100644 --- a/client/admin/dashboardPage.html +++ b/client/admin/dashboardPage.html @@ -20,16 +20,10 @@
-
+
-
- +
+ Admin
@@ -37,10 +31,7 @@
-
+
-
+
- +
-
-
+
+
@@ -269,51 +240,27 @@

:class="index % 2 ? 'bg-gray-50' : 'bg-white'" @click="toggleEditPanel(user)" > -

- - - + + + - - -
- {{ user.id }} - - {{ user.attributes.name }} - - {{ user.attributes.email }} - + {{ user.id }}{{ user.attributes.name }}{{ user.attributes.email }} - {{ user.attributes.active == 1 ? 'Active (1)' : - 'Inactive (0)' }} + {{ user.attributes.active == 1 ? 'Active (1)' : 'Inactive (0)' }} + {{ user.attributes.created }} + {{ user.attributes.updated }} - + Edit v-if="showEditPanel" > -
+
-
+
-
-
+
+
-

- Details -

+

Details

@@ -406,9 +336,7 @@

- ID + ID
- Name + Name
- Email + Email
- New Password + New Password
- Confirm Password + Confirm Password
- Active + Active
- Created At + Created At
- Updated At + Updated At -
+