Skip to content

Commit

Permalink
Attempt store site
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Oct 25, 2023
1 parent 84120f0 commit 02f1b7b
Show file tree
Hide file tree
Showing 10 changed files with 5,491 additions and 61 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/github-build-and-deploy-rocket-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Deploy
on:
push:
branches: [ main ]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install and Build 🔧
run: |
npm install
npm run build -w stores-site
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: sites/dist # The folder the action should deploy.
100 changes: 40 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"packages/utils",
"packages/core-types",
"packages/elements",
"packages/stores"
"packages/stores",
"sites/*"
],
"engines": {
"npm": ">=7.0.0"
Expand Down
18 changes: 18 additions & 0 deletions sites/stores/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## editors
/.idea
/.vscode
## system files
.DS_Store
## npm
/node_modules/
/npm-debug.log
## testing
/coverage/
## temp folders
/.tmp/
# build
/_site/
/dist/
/out-tsc/
storybook-static
custom-elements.json
17 changes: 17 additions & 0 deletions sites/stores/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
MIT License
Copyright (c) 2022 slides-sl
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions sites/stores/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Holochain Immersive: Lesson 1

Source code for the lesson slides. Visit the slides here:

https://holochain-immersive.github.io/holochain-lesson-1

## Setup Instructions

Clone this repo, and run this to bring up the slides:

```bash
npm install
npm start
```

To edit the slides, open `index.html` and edit them.

## Relevant documentation

- [Reveal.js](https://revealjs.com/)
- [reveal.js-animate-fragments](https://www.npmjs.com/package/reveal.js-animate-fragments)
55 changes: 55 additions & 0 deletions sites/stores/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<meta name="Description" content="Put your description here." />
<base href="/" />

<script type="module">
import "reveal.js/dist/reveal.css";
import "reveal.js/dist/theme/black.css";
import "reveal.js/plugin/highlight/monokai.css";
import "@mythosthesia/reveal-course-preset/styles.css";
</script>

<title>@holochain-open-dev/stores</title>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>@holochain-open-dev/stores</h1>
<h2>Reactive stores to build hApps</h2>
</section>

<section>
<!-- prettier-ignore -->
<fragment language="markdown" animate="by-line with-ancestry">
### Desirable features of a peer-to-peer network

- Scalable
- No consensus on the state of the system, peers can change state without having all the other peers agree
- Data availability
- Resilient to network partitions
- Consistency
- Data never reaches an irreconcilable state
- Resilient to bad actors
- If some node is not behaving according to the rules of the game, they can be easily identified and protected against
- Security and Privacy
</fragment>
</section>
</div>
</div>
<script type="module">
import Reveal from "reveal.js";
import { plugins, config } from "@mythosthesia/reveal-course-preset";

let deck = new Reveal();
deck.initialize(config);
</script>
</body>
</html>
Loading

0 comments on commit 02f1b7b

Please sign in to comment.