From ccad6b79b3700bd78252d348ef151b0d01bac76a Mon Sep 17 00:00:00 2001 From: Connor Winston Date: Thu, 5 Sep 2024 20:46:03 -0500 Subject: [PATCH 01/17] Update Remote Content System --- .editorconfig | 16 +++ app/components/Button.vue | 1 + app/components/NavSectionList.vue | 4 +- app/components/header/Nav.vue | 40 +++++- app/components/pages/ArticleArea.global.vue | 122 ++++++++++++++++ .../pages/ArticleCategory.global.vue | 108 +++++++++++++++ app/components/pages/ArticlePage.global.vue | 100 +++++++++++++ .../pages/DocumentationPage.global.vue | 89 ++++++++++++ app/components/ui/NavTree.vue | 2 +- app/composables/data.ts | 54 ++++++++ app/pages/[...slug].vue | 112 ++++----------- nuxt.config.ts | 38 ++--- package.json | 1 + pnpm-lock.yaml | 3 + public/_robots.txt | 1 - server/remoteContent/index.ts | 131 ++++++++++++++++++ server/utils/directus.ts | 16 +-- types/directus.ts | 32 +++++ 18 files changed, 743 insertions(+), 127 deletions(-) create mode 100644 .editorconfig create mode 100644 app/components/pages/ArticleArea.global.vue create mode 100644 app/components/pages/ArticleCategory.global.vue create mode 100644 app/components/pages/ArticlePage.global.vue create mode 100644 app/components/pages/DocumentationPage.global.vue create mode 100644 app/composables/data.ts delete mode 100644 public/_robots.txt create mode 100644 server/remoteContent/index.ts diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..59b4173c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root=true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +trim_trailing_whitespace = true + +[*.{mjs,cjs,js,mts,cts,ts,json,vue,html,scss,css,toml,md}] +indent_style = tab + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_style = space \ No newline at end of file diff --git a/app/components/Button.vue b/app/components/Button.vue index e6806aec..8ffe0909 100644 --- a/app/components/Button.vue +++ b/app/components/Button.vue @@ -1,3 +1,4 @@ + diff --git a/app/components/pages/ArticleCategory.global.vue b/app/components/pages/ArticleCategory.global.vue new file mode 100644 index 00000000..20ababab --- /dev/null +++ b/app/components/pages/ArticleCategory.global.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/app/components/pages/ArticlePage.global.vue b/app/components/pages/ArticlePage.global.vue new file mode 100644 index 00000000..8daf74d9 --- /dev/null +++ b/app/components/pages/ArticlePage.global.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/app/components/pages/DocumentationPage.global.vue b/app/components/pages/DocumentationPage.global.vue new file mode 100644 index 00000000..cec52799 --- /dev/null +++ b/app/components/pages/DocumentationPage.global.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/app/components/ui/NavTree.vue b/app/components/ui/NavTree.vue index 29719b0a..73fa3026 100644 --- a/app/components/ui/NavTree.vue +++ b/app/components/ui/NavTree.vue @@ -1,7 +1,7 @@