Skip to content

Commit 53597c1

Browse files
committed
conf manager
1 parent 211289d commit 53597c1

11 files changed

Lines changed: 605 additions & 13 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ tests/*
1919
.nfs*
2020
# vscode
2121
.vscode*
22+
*.code-workspace
2223
## Mac
2324
# ignore general files
2425
.DS_Store

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024
3+
Copyright (c) 2024 Nuno Luciano
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

app/asset/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,13 @@ document.addEventListener('DOMContentLoaded', function(event) {
208208
console.log(error);
209209
})
210210
});
211-
//Web applications and Tools
211+
//Web applications and Tools, set itemsPerPage to 15
212212
function alpineInstance() {
213213
return {
214214
pagination: '<template x-for="idx in numOfPages"><a :href="`/${idx}`" x-text="`${idx}`" :aria-current="idx === currentPage + 1 ? \'page\' : false" x-bind:class="idx === currentPage + 1 && \'bg-primary text-light\'" @click.prevent="currentPage = idx - 1" class="h-6 w-6 bg-gray-100 text-gray-40 hover:bg-primary hover:text-light dark:bg-dark dark:hover:bg-primary-dark dark:hover:text-light transition-colors duration-500 rounded-md m-1 px-3 py-1"></a></template>',
215215
intro: 'Available Web applications and <b class="text-gray-400">tools</b> that run in the browser',
216216
app: [],
217-
itemsPerPage: 10,
217+
itemsPerPage: 15,
218218
currentPage: 0,
219219
numOfPages() {
220220
return Math.ceil(this.app.length / this.itemsPerPage)

app/asset/css/icons.css

Lines changed: 10 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/asset/modal-launcher.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h2 class="mb-2 text-xl uppercase" x-text="app.name"></h2>
4949
</div>
5050
</template>
5151
<nav class="flex flex-row w-full items-center justify-between px-2 py-2">
52-
<div class="w-full aria-label="Select a page" x-html="pagination"></div>
52+
<div class="w-full" aria-label="Select a page" x-html="pagination"></div>
5353
</nav>
5454
</section>
5555
</div>

app/tools/manager/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Codemo Config Manager
2+
3+
A UI management tool for Codemo launcher and search configurations.
4+
5+
## Features
6+
7+
- **Launcher Management**: Create, read, update, and delete web app launcher entries
8+
- **Search Management**: Manage searchable pages configuration
9+
- **Backup**: Download timestamped backup files of your configurations
10+
- **GitHub Integration**: Save changes directly to GitHub using the existing authentication workflow
11+
12+
## Usage
13+
14+
1. Open the tool in your browser at `/tools/manager/`
15+
2. Switch between Launcher and Search modes using the tabs
16+
3. Use the toolbar buttons to:
17+
- Create new entries
18+
- Edit existing entries
19+
- Delete entries
20+
- Backup configurations
21+
- Save changes to GitHub
22+
23+
## How It Works
24+
25+
### Editing
26+
- The tool loads the current [launcher.json](file://d:\codemo\app\asset\launcher.json) and [search.json](file://d:\codemo\app\asset\search.json) files
27+
- You can modify entries through the intuitive UI
28+
- Changes are kept in memory until saved
29+
30+
### Saving
31+
- Click "Save to GitHub" to open GitHub's editor with the current configuration
32+
- Paste the updated JSON content into the editor
33+
- Commit the changes through GitHub's interface
34+
35+
### Backup
36+
- Click "Backup" to download a timestamped copy of the current configuration
37+
- Backups are saved as JSON files to your local machine
38+
39+
## Technical Details
40+
41+
- Built with Alpine.js and Tailwind CSS
42+
- No server-side dependencies
43+
- Works entirely client-side
44+
- Integrates with existing Codemo workflow

0 commit comments

Comments
 (0)