Skip to content

Commit 15f6f3e

Browse files
Merge pull request #74 from solid-contrib/tasks
Tasks and Movies
2 parents 44a31e0 + f9767f1 commit 15f6f3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+9883
-1
lines changed

movies/vanilla/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.env
3+
build

movies/vanilla/.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"parser": "typescript",
3+
"semi": true,
4+
"singleQuote": true,
5+
"trailingComma": "all"
6+
}

movies/vanilla/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Solid Data Module for Movies
2+
3+
### Usage
4+
Set up a typescript project, install [solid-data-module-tasks](https://www.npmjs.com/package/solid-data-module-tasks) from NPM, and create a `.env` file like this:
5+
```env
6+
SOLID_SERVER=https://solidcommunity.net
7+
8+
SOLID_PASSWORD=...
9+
```
10+
11+
Edit line 19 of `src/example.ts` to point to your movies folder on your pod.
12+
```sh
13+
pnpm install
14+
pnpm build
15+
pnpm start
16+
```
17+
18+
The output will look something like this:
19+
```json
20+
{
21+
created: 2020-07-17T16:40:29.000Z,
22+
modified: 2020-08-06T14:09:18.000Z,
23+
movie: {
24+
published: 2019-05-30T00:00:00.000Z,
25+
description: "All unemployed, Ki-taek's family takes peculiar interest in the wealthy and glamorous Parks for their livelihood until they get entangled in an unexpected incident.",
26+
image: 'https://image.tmdb.org/t/p/w500/7IiTTgloJzvGI1TAYymCfbfl3vT.jpg',
27+
name: 'Parasite',
28+
sameAs: [
29+
'https://www.imdb.com/title/tt6751668',
30+
'https://www.themoviedb.org/movie/496243'
31+
]
32+
}
33+
}
34+
{
35+
created: 2022-05-17T14:50:44.000Z,
36+
startTime: 2022-05-17T14:50:44.000Z,
37+
endTime: 2022-05-17T14:50:44.000Z,
38+
listingId: 'https://michielbdejong.solidcommunity.net/movies/the-green-mile-1999#it'
39+
}
40+
```

movies/vanilla/docs/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg=="
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
:root {
2+
--light-hl-0: #795E26;
3+
--dark-hl-0: #DCDCAA;
4+
--light-hl-1: #000000;
5+
--dark-hl-1: #D4D4D4;
6+
--light-hl-2: #A31515;
7+
--dark-hl-2: #CE9178;
8+
--light-hl-3: #CD3131;
9+
--dark-hl-3: #F44747;
10+
--light-hl-4: #098658;
11+
--dark-hl-4: #B5CEA8;
12+
--light-hl-5: #008000;
13+
--dark-hl-5: #6A9955;
14+
--light-code-background: #FFFFFF;
15+
--dark-code-background: #1E1E1E;
16+
}
17+
18+
@media (prefers-color-scheme: light) { :root {
19+
--hl-0: var(--light-hl-0);
20+
--hl-1: var(--light-hl-1);
21+
--hl-2: var(--light-hl-2);
22+
--hl-3: var(--light-hl-3);
23+
--hl-4: var(--light-hl-4);
24+
--hl-5: var(--light-hl-5);
25+
--code-background: var(--light-code-background);
26+
} }
27+
28+
@media (prefers-color-scheme: dark) { :root {
29+
--hl-0: var(--dark-hl-0);
30+
--hl-1: var(--dark-hl-1);
31+
--hl-2: var(--dark-hl-2);
32+
--hl-3: var(--dark-hl-3);
33+
--hl-4: var(--dark-hl-4);
34+
--hl-5: var(--dark-hl-5);
35+
--code-background: var(--dark-code-background);
36+
} }
37+
38+
:root[data-theme='light'] {
39+
--hl-0: var(--light-hl-0);
40+
--hl-1: var(--light-hl-1);
41+
--hl-2: var(--light-hl-2);
42+
--hl-3: var(--light-hl-3);
43+
--hl-4: var(--light-hl-4);
44+
--hl-5: var(--light-hl-5);
45+
--code-background: var(--light-code-background);
46+
}
47+
48+
:root[data-theme='dark'] {
49+
--hl-0: var(--dark-hl-0);
50+
--hl-1: var(--dark-hl-1);
51+
--hl-2: var(--dark-hl-2);
52+
--hl-3: var(--dark-hl-3);
53+
--hl-4: var(--dark-hl-4);
54+
--hl-5: var(--dark-hl-5);
55+
--code-background: var(--dark-code-background);
56+
}
57+
58+
.hl-0 { color: var(--hl-0); }
59+
.hl-1 { color: var(--hl-1); }
60+
.hl-2 { color: var(--hl-2); }
61+
.hl-3 { color: var(--hl-3); }
62+
.hl-4 { color: var(--hl-4); }
63+
.hl-5 { color: var(--hl-5); }
64+
pre, code { background: var(--code-background); }

movies/vanilla/docs/assets/icons.js

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

0 commit comments

Comments
 (0)