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
Copy file name to clipboardExpand all lines: .github/instructions/general.instructions.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ applyTo: "**"
17
17
- Do not leave trailing spaces on lines.
18
18
- Do not use run-astro-dev, always use "npm run dev".
19
19
- Always create TypeScript files, not JavaScript files.
20
+
- For every `*.module.css` file, also create the matching `*.module.css.d.ts` file, import it as `styles`, and access classnames via dot syntax (e.g., `styles.someClass`) instead of bracket syntax.
20
21
- Prefer destructured imports over namespace imports when importing specific functions from modules (e.g., `import { resolve } from 'path'` instead of `import * as path from 'path'`).
21
22
- Do not access nanostore observables (e.g., `$consent`) directly from components; expose helper/action methods in `@components/scripts/store` and import those instead.
22
23
- Preact exists only for the Markdown E2E harness under `src/lib/markdown/__tests__/e2e`; all production UI components must use Lit web components instead of Preact.
Copy file name to clipboardExpand all lines: _TODO.md
+12-75Lines changed: 12 additions & 75 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,17 @@ continue
17
17
18
18
`/domain`
19
19
20
-
- Entities are part of the domain. They represent state and core business rules, but not persistence logic. Defined primarily by its unique identity, rather than its attributes or properties.
21
-
22
-
Is an entry point to the domain logic forming the core of the application, modifying state and persistence as needed. This may be a Transaction Script, Service Layer, Application Service, or something similar.
20
+
- The Domain is an entry point to the domain logic forming the core of the application, modifying state and persistence as needed. This may be a Transaction Script, Service Layer, Application Service, or something similar. The Domain in ADR relates to the whole of the domain objects, all the entities and their relations as a whole
23
21
24
22
`/entities` or `entities.ts`
25
23
26
-
- The responder builds the entire HTTP response from the domain's output which is given to it by the action. The Responder is responsible solely for formatting the final response (e.g., JSON, HTML) to be sent back to the client.
24
+
- Entities are part of the domain. They represent state and core business rules, but not persistence logic. Defined primarily by its unique identity, rather than its attributes or properties.
25
+
26
+
- By any name the Domain Payload Object is a specialized Data Transfer Object. A Data Transfer Object is a fine-grained object, providing properties that mirror or at least shadow properties found on the domain objects that they replicate. A Domain Payload Object is a coarse-grained object that transfers whole domain object instances to the client.
27
27
28
28
`/responders` or `responders.ts`
29
29
30
+
- The responder builds the entire HTTP response from the domain's output which is given to it by the action. The Responder is responsible solely for formatting the final response (e.g., JSON, HTML) to be sent back to the client.
30
31
31
32
### Endpoints:
32
33
@@ -145,10 +146,6 @@ cat.structure: Rules related to the document's overall structure, like the prope
145
146
cat.tables: Rules for data tables, including headers and associations.
146
147
cat.text-alternatives: Rules for ensuring that text alternatives are provided for non-text content, such as images.
147
148
148
-
## Use the Page Visibility API to pause videos, image carousels, and animations
149
-
150
-
Stop unnecessary processes when the user doesn't see the page or inversely to perform background actions.
151
-
152
149
## "Add to Calendar" button
153
150
154
151
Google Calendar, Apple Calendar, Yahoo Calender, Microsoft 365, Outlook, and Teams, and generate iCal/ics files (for all other calendars and cases).
@@ -160,83 +157,23 @@ Google Calendar, Apple Calendar, Yahoo Calender, Microsoft 365, Outlook, and T
160
157
161
158
Needs to add real API key and test
162
159
163
-
## SCSS Use clothoid corners with border-radius
164
-
165
-
`https://onotakehiko.dev/clothoid/`
166
-
167
-
`SCSS Make sure accent-color or styling for checkboxes/radio button groups is set up. Sets the colour used by checkboxes and radio buttons, as well as range fields and progress indicators. The accent colour is inherited`
168
-
169
-
```scss
170
-
:root{
171
-
accent-color : #696;
172
-
}
173
-
```
174
-
175
-
## Refactor modals
176
-
177
-
Modals should be wrapped in the `<dialog>` element and use programmatic methods to display - `showModal()` to disable the area outside of the modal (handles `esc` keypress natively) and `show()` to allow interaction outside the modal, along with `close()`.
178
-
179
-
## Add for iOS
180
-
181
-
Specifying a Launch Screen Image
182
-
183
-
On iOS, similar to native applications, you can specify a launch screen image that is displayed while your web application launches. This is especially useful when your web application is offline. By default, a screenshot of the web application the last time it was launched is used. To set another startup image, add a link element to the webpage, as in:
## Astro wrapper for GitHub's relative time web component. Translates dates to past or future time phrases, like "*4 hours from now*" or "*20 days ago*"
205
+
###Astro wrapper for GitHub's relative time web component. Translates dates to past or future time phrases, like "*4 hours from now*" or "*20 days ago*"
0 commit comments