You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A dependency-free JavaScript module for the help modal system:
23
23
- Consistent modal behavior across all apps
24
24
- Keyboard navigation (ESC to close)
25
25
- Focus management
26
26
- Custom event system
27
27
28
-
### 4. `help-content-template.html`
28
+
### 4. `client/help-content-template.html`
29
29
A template for creating consistent help content:
30
30
- Table of contents navigation
31
31
- Standardized section structure
@@ -45,7 +45,7 @@ A template for creating consistent help content:
45
45
-`<!-- APP_SPECIFIC_CSS -->` - Links to your app-specific CSS files
46
46
-`<!-- APP_SPECIFIC_SCRIPTS -->` - Links to your app-specific JavaScript files
47
47
48
-
3.**Implement your application logic**. You can use Cursor or other agents for it. There is a file called `context.txt` that contains context LLM can use.
48
+
3.**Implement your application logic**. You can use Cursor or other agents for it. There is a file called `AGENTS.md` that contains context LLM can use.
49
49
4.**Customise your help content** using the help content template
50
50
51
51
### Customizing Help Content
@@ -115,7 +115,7 @@ The server will start on `http://localhost:3000` by default.
115
115
116
116
### WebSocket Messaging API
117
117
118
-
The server provides a `POST /message` endpoint that allows you to send real-time messages to connected clients. This can be used to signal changes in the client during events like "Run" or "Submit". When a message is sent, the preview window with the application open will display an alert with the message.
118
+
The server provides a `POST /message` endpoint that allows you to send real-time messages to connected clients. This can be used to signal changes in the client during events like "Run" or "Submit". When a message is sent, the preview window with the application open will display an alert with the message.
119
119
120
120
It uses the `ws` package, so if you want to use it, install the packages (but this is optional).
121
121
@@ -138,14 +138,3 @@ curl -X POST http://localhost:3000/message \
138
138
-H "Content-Type: application/json" \
139
139
-d '{"message": "Hello from the server!"}'
140
140
```
141
-
142
-
## File Structure
143
-
144
-
```
145
-
generalised/
146
-
├── bespoke.css # Core CSS framework
147
-
├── index.html # Base HTML template
148
-
├── help-modal.js # Help modal JavaScript
149
-
├── help-content-template.html # Help content template
0 commit comments