Skip to content

Commit

Permalink
31 feature use hour and minutes in modern calendar (#44)
Browse files Browse the repository at this point in the history
* chore: dependencies update

* chore: upgraded build chain

* chore: removed un-maintanable tests :<

sadly the setup ain't really vue test friendly, too bad

* feat: preped for the incomming date token upgrade

right now all systems are the same

* tests: tested new utils function

* chore: updated outdated variable naming and it's jsdoc

* feat: addded uncompleted step for date token configuration

* tests: more unit

* chore: packages updates

* chore: updated import after rebase

* feat: added crude control of default tokens

* feat: finalized the advanced token configuration and the re-sync method when changing tokens

* chore: added lodash.clonedeep

* chore: added lodash.clonedeep types

* feat: string date token handled

* chore: updated wording

* chore: package upgrade

* test: added test case for getNoteTags

* fix: type issues and unhandled module in the settings flow

* chore: removed generated file

* Update README.md

* chore: obsidian plugin version bump

* chore: removed one lodash.clonedeep too many

* chore: re-added lodash.clonedeep but as dev dependency

* chore: cleaner build, also left root main.css to not break fresh builds

---------

Co-authored-by: April <april@groover.co>
  • Loading branch information
April-Gras and April committed Jul 6, 2023
1 parent 8f86a38 commit d007615
Show file tree
Hide file tree
Showing 43 changed files with 2,129 additions and 7,675 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ node_modules
# Don't include the compiled main.js file in the repo.
# They should be uploaded to GitHub releases instead.
main.js
# Style is now built from source
# Styles are now built from source
styles.css
# root main.css will be kept to preserve build

# Exclude sourcemaps
*.map
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,14 @@ cycle {cycle}, {moon}

The end result for our initaly declared metadata would look something like: `cycle 687, 2`.

##### Date token types

In some cases numbers displaying your dates as plain numbers won't really cut it. This is where date token types come in. For now they come in two flavors

- `numerical`: These date tokens should be displayed as default, for example the day and the year in `06 july 2018` are numerical date tokens. The `day` token has a minial length of `2` and the `year` token has a minimal length of `4`.
- `string`: These are a bit more cumbersome to configure but add great visibility. For instance in our previous example (`06 july 2018`) the `month` token is a `string` date token.
To configure your date tokens head to the plugins settings and use the `Date Format Settings` setup flow or edit them using advanced mode.

---

## Developement
Expand Down
5 changes: 3 additions & 2 deletions esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const context = await esbuild.context({
},
});

await esbuild.build({
const css = await esbuild.context({
entryPoints: ["./src/main.css"],
outfile: "styles.css",
bundle: true,
Expand All @@ -55,7 +55,8 @@ await esbuild.build({

if (prod) {
await context.rebuild();
await css.rebuild();
process.exit(0);
} else {
await context.watch();
await Promise.all([context.watch(), css.watch()]);
}
Empty file added main.css
Empty file.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "aprils-automatic-timelines",
"name": "April's Automatic Timelines",
"version": "0.4.1",
"version": "0.5.0",
"minAppVersion": "0.15.0",
"description": "Simple timeline generator for story tellers",
"author": "April Gras",
Expand Down
Loading

0 comments on commit d007615

Please sign in to comment.