Skip to content

Commit 839f5b2

Browse files
Merge pull request #143 from solid-contrib/movies
Movies
2 parents bab44d5 + 4c36044 commit 839f5b2

32 files changed

Lines changed: 4741 additions & 23 deletions

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+
SOLID_EMAIL=michielbdejong@users.css.pod
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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
:root {
2+
--light-code-background: #FFFFFF;
3+
--dark-code-background: #1E1E1E;
4+
}
5+
6+
@media (prefers-color-scheme: light) { :root {
7+
--code-background: var(--light-code-background);
8+
} }
9+
10+
@media (prefers-color-scheme: dark) { :root {
11+
--code-background: var(--dark-code-background);
12+
} }
13+
14+
:root[data-theme='light'] {
15+
--code-background: var(--light-code-background);
16+
}
17+
18+
:root[data-theme='dark'] {
19+
--code-background: var(--dark-code-background);
20+
}
21+
22+
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)