Skip to content

Commit ed48e2f

Browse files
authored
Merge pull request #11 from graasp/animation
feat: implement first version
2 parents 34a8f52 + 232e6a9 commit ed48e2f

Some content is hidden

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

54 files changed

+13479
-4708
lines changed

README.md

Lines changed: 17 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -2,85 +2,13 @@
22
<img style="text-align: center" src="https://graasp.org/favicon.svg" width=100 >
33
</div>
44

5-
# Graasp App Template
6-
7-
This repository hosts the template code for a **Graasp App** written with [Typescript](https://www.typescriptlang.org/) and [React](https://react.dev/). The bundler used is [Vite](https://vitejs.dev).
8-
9-
<div style="gap:10px; display:flex; justify-content: center; align-items: center;">
10-
<img src="https://upload.wikimedia.org/wikipedia/commons/4/4c/Typescript_logo_2020.svg" width=50 >
11-
<span>+</span>
12-
<img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/React-icon.svg" width=50 >
13-
<span>+</span>
14-
<img src="https://upload.wikimedia.org/wikipedia/commons/f/f1/Vitejs-logo.svg" width=50 >
15-
<span>=</span>
16-
<span>❤️</span>
17-
</div>
18-
19-
## Using this template
20-
21-
The recommended way to use this template is with the [Graasp CLI](https://github.com/graasp/graasp-cli) which provides a setup wizard and some convenience tools when creating your project.
22-
23-
Alternatively it is possible to create a new Github repo from this project using the Github Template function. In this case the local setup is left as an exercice to the reader.
24-
25-
### With the Graasp CLI
26-
27-
This template can be used with the [graasp CLI](https://www.npmjs.com/package/@graasp/cli?activeTab=readme) to setup your project in a single line:
28-
29-
```bash
30-
npx @graasp/cli@latest new -s graasp/graasp-app-starter-ts-vite
31-
```
5+
# Coral Bleaching
326

33-
The CLI will ask you a few questions to help you setup your project. It suggests sane defaults:
7+
Partial bleaching: beyond some temperature thresholds (too high, too cold), smaller corals will bleach and die more quickly (`deathSpeed`).
348

35-
- Deploying using GitHubActions (recommended)
36-
- Provide an appId
37-
- Auto-install project dependencies
38-
- Initialize a local git repository
9+
`kelpAmount` is the vitality of the coral. We derive the growth from this amount.
3910

40-
<details >
41-
<summary><h3>Directly from GitHub</h3></summary>
42-
43-
Should you choose to bootstrap your graasp app manually, you will need to execute the following steps.
44-
45-
#### Cloning the template
46-
47-
Get a copy of this repo.
48-
49-
##### Using the Template button
50-
51-
Click on the `Use this template` button. For more instructions head over to the [GitHub Docs on Using a template](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template)
52-
53-
##### Clone from the command line
54-
55-
With `git`:
56-
57-
```sh
58-
git clone
59-
```
60-
61-
With the [GitHub CLI](https://cli.github.com/):
62-
63-
```bash
64-
gh repo clone graasp/graasp-app-starter-ts-vite
65-
```
66-
67-
#### Adding Workflows
68-
69-
To deploy your app using github actions.
70-
71-
#### Renaming
72-
73-
You will have to look for the `Graasp App Template` string in yours project files and rename it to your project name
74-
75-
</details>
76-
77-
### GitHub Repo setup
78-
79-
If you choose to deploy your app with the provided GitHubActions workflows you will need to create the following secrets:
80-
81-
- `APP_ID`: a UUID v4 that identifies your app for deployment
82-
- `APP_KEY`: a UUID v4 that authorizes your app with the Graasp API
83-
- `SENTRY_DSN`: your Sentry url to report issues and send telemetry
11+
Staying too long in the dying state will definitely kill the coral. As long as the coral is not dead, it can revive and go out of the dying state.
8412

8513
## Installation
8614

@@ -110,3 +38,16 @@ VITE_VERSION=latest
11038
# dont open browser
11139
BROWSER=none
11240
```
41+
42+
---
43+
44+
## Coral bleaching
45+
46+
```mermaid
47+
stateDiagram-v2
48+
[*] --> Growing
49+
Growing --> Growing: kelpCount, 23-28°c = +1, otherwise -1
50+
51+
Growing --> Dead: kelpCount == 0
52+
Dead --> Dead
53+
```

cypress/e2e/analytics/main.cy.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

cypress/e2e/builder/main.cy.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

cypress/e2e/player/main.cy.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

cypress/fixtures/members.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.

cypress/fixtures/mockItem.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

cypress/support/commands.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.

cypress/support/component-index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

cypress/support/component.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

cypress/support/e2e.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)