diff --git a/.gitignore b/.gitignore index e6cc387..a5e35b1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,3 @@ node_modules .DS_Store constants endpoints -navigator \ No newline at end of file diff --git a/build-tools/build.sh b/build-tools/build.sh index 35ca06b..d41d929 100755 --- a/build-tools/build.sh +++ b/build-tools/build.sh @@ -33,4 +33,4 @@ fi echo "[BUILD:SH] Running post processor scripts..." # Run Post processors: Update style imports in .js files, create component modules node "$SCRIPT_DIR/post-processor.js" build/cjs $DEV_FLAG -node "$SCRIPT_DIR/post-processor.js" build/es $DEV_FLAG \ No newline at end of file +node "$SCRIPT_DIR/post-processor.js" build/es $DEV_FLAG diff --git a/src/constants.ts b/src/constants.ts index 4dd1185..179e9d2 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,2 +1,2 @@ export const SESSION_TOKEN_NAME = "x-access-token" -export const SESSION_USER_TOKEN_NAME = "auth-session-user" \ No newline at end of file +export const SESSION_USER_TOKEN_NAME = "auth-session-user" diff --git a/src/navigator.ts b/src/navigator.ts new file mode 100644 index 0000000..506bfbf --- /dev/null +++ b/src/navigator.ts @@ -0,0 +1,91 @@ +import { v4 as uuid } from "uuid" +import { AppNavigatorDataType } from "@armco/types" + +const navigator: Array = [ + { + label: "Playgrounds", + icon: "tb.TbSoccerField", + color: "cornflowerblue", + id: uuid(), + url: "/playground", + items: [ + { + label: "Components", + icon: "cg/CgComponents", + description: [ + "Stuffle's opinionated component library.", + "Save effort by including this component library to your project.", + "Also exists as npm package", + ], + url: "/components", + }, + { + label: "Icon Viewer", + icon: "gr/GrOverview", + url: "/icon", + }, + { + label: "Armory", + icon: "io5/IoLogoWebComponent", + url: "/", + }, + ], + }, + { + label: "Assets", + icon: "fa/FaBuromobelexperte", + color: "darkcyan", + id: uuid(), + url: "/assets", + items: [ + { + label: "Icons", + icon: "fa/FaIcons", + url: "/icons", + }, + { + label: "Fonts", + icon: "bi/BiFontFamily", + url: "/fonts", + }, + ], + }, + { + label: "Tools & Services", + icon: "fc/FcServices", + id: uuid(), + url: "/tools-and-services", + items: [ + { + label: "IAM", + icon: "fi.FiUsers", + url: "/config", + }, + { + label: "Analytics", + icon: "io/IoMdAnalytics", + url: "/config", + }, + { + label: "Confitron", + icon: "fc.FcDataConfiguration", + url: "/config", + }, + { + label: "Tasker", + icon: "ri.RiPlayList2Fill", + url: "/tasks", + }, + { + label: "Png to Svg", + icon: "si/SiConvertio", + }, + { + label: "Svg to Png", + icon: "si/SiConvertio", + }, + ], + }, +] + +export default navigator