Skip to content

Commit 61e11ca

Browse files
feat: Implement CoCo application with offcanvas UI and item management
- Added main application logic in `main.ts` to initialize CoCo app and handle connection. - Created `Offcanvas` component in `offcanvas.ts` for displaying taxonomy, API, and async elements. - Implemented `ItemList` to manage and display items based on their types. - Styled the application with a new CSS file `style.css` for layout and animations. - Configured TypeScript settings in `tsconfig.json` for improved type checking and module resolution. - Added Vite environment types in `vite-env.d.ts` for better development experience.
1 parent b301111 commit 61e11ca

File tree

13 files changed

+3837
-1
lines changed

13 files changed

+3837
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ option(INTERACTIVE_TEST "Enable interactive test mode" OFF)
99
set(COCO_NAME "RESTART" CACHE STRING "The CoCo Application Name" FORCE)
1010
set(BUILD_MONGODB ON CACHE BOOL "Build MongoDB connection" FORCE)
1111
set(BUILD_COCO_SERVER ON CACHE BOOL "Build the CoCo server" FORCE)
12+
set(BUILD_WEB_APP ON CACHE BOOL "Build the CoCo web application" FORCE)
13+
set(CLIENT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/gui CACHE PATH "The CoCo client directory" FORCE)
1214

1315
add_executable(RESTART src/main.cpp src/restart.cpp src/restart_server.cpp)
1416
target_compile_features(RESTART PUBLIC cxx_std_17)

extern/coco

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit d129d0ebe23154876bfb953bab624f81cfad81a5
1+
Subproject commit 0f2067fc32cdacce9d8f2892bad631a5664de6f3

gui/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

gui/index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" href="/favicon.ico" />
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8+
<title>RESTART</title>
9+
</head>
10+
11+
<body>
12+
<div id="app"></div>
13+
<script type="module" src="/src/main.ts"></script>
14+
</body>
15+
16+
</html>

0 commit comments

Comments
 (0)