Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
0ea4a9e
initial docusaurs setup
902seanryan Jun 14, 2024
ecca5a1
docusaurs setup
902seanryan Jun 14, 2024
602911c
set up scss and some basic styles
902seanryan Jun 19, 2024
33de80b
added about half of the core readmes
902seanryan Jun 19, 2024
0ef50b4
finish core docs
902seanryan Jun 26, 2024
49a2410
add container docs and split pages
902seanryan Jun 26, 2024
6145dc4
Merge pull request #17 from SpringRoll/feature/multiple-docs-pages
902seanryan Jun 26, 2024
7758517
color updates
902seanryan Jun 26, 2024
228548f
Added game demo page with SpringRoll Container
jeremymccurdy-redspace Jul 2, 2024
63d54a4
rename springroll folder properly this time
902seanryan Jul 2, 2024
d7c0bf4
Merge branch 'docusaurus-update' of github.com:SpringRoll/springroll.…
jeremymccurdy-redspace Jul 2, 2024
ddd3a31
Fixes post-merge, and added `_category_.json` file for examples section
jeremymccurdy-redspace Jul 2, 2024
befb936
Added back hint button that was accidentally removed
jeremymccurdy-redspace Jul 2, 2024
cf316a5
Moved examples into its own sidebar section. Changed demo page to use…
jeremymccurdy-redspace Jul 3, 2024
8f8d415
Added source code link. Adjusted game iframe size so that text under …
jeremymccurdy-redspace Jul 3, 2024
3f9a7e7
Styling adjustments to prevent text overlapping the iframe
jeremymccurdy-redspace Jul 3, 2024
5525382
Changed the background color of the demo iframe to prevent issues wit…
jeremymccurdy-redspace Jul 3, 2024
fcc25c7
Merge pull request #18 from SpringRoll/feature/187838825-Game-Demo-Pa…
jeremymccurdy-redspace Jul 4, 2024
8dc6584
Merge branch 'docusaurus-update' into feature/home-page-redesign
902seanryan Jul 4, 2024
6cf5e0b
first pass
902seanryan Jul 4, 2024
f3d609b
real first pass
902seanryan Jul 4, 2024
46b858e
announcement bar update
902seanryan Jul 4, 2024
e3f919f
code cleanup
902seanryan Jul 4, 2024
02365f4
color cleanup
902seanryan Jul 4, 2024
84d3a25
bit more cleanup
902seanryan Jul 4, 2024
73b25ff
re-add imports I removed by accident
902seanryan Jul 4, 2024
939c91f
Merge pull request #20 from SpringRoll/feature/187838837Game-Demo-Pag…
jeremymccurdy-redspace Jul 5, 2024
b27471b
Added support for audio mute button
jeremymccurdy-redspace Jul 8, 2024
5943043
Merge branch 'docusaurus-update' of github.com:SpringRoll/springroll.…
jeremymccurdy-redspace Jul 8, 2024
09d7c34
Added pause plugin support
jeremymccurdy-redspace Jul 9, 2024
5f10043
Merge pull request #19 from SpringRoll/feature/home-page-redesign
902seanryan Jul 12, 2024
63ca42c
Merge branch 'docusaurus-update' into feature/187839050-Game-Demo-Pause
jeremymccurdy-redspace Jul 12, 2024
39cb5a7
speech synth demo page
902seanryan Jul 18, 2024
e67e660
Merge pull request #22 from SpringRoll/feature/187839050-Game-Demo-Pause
jeremymccurdy-redspace Jul 18, 2024
06694e1
switch to useMemo for example
902seanryan Jul 18, 2024
353a051
removed unused interface
902seanryan Jul 18, 2024
c182b15
Merge pull request #23 from SpringRoll/feature/187876824_speech_synth
902seanryan Jul 19, 2024
30bc865
Changed speech synth to use dynamic imports to prevent compilation er…
jeremymccurdy-redspace Jul 19, 2024
6d69c26
update to fix builds
902seanryan Jul 19, 2024
40c38f5
Merge pull request #24 from SpringRoll/feature/187876824_speech_synth
902seanryan Jul 19, 2024
71783a7
Capitalization fix
jeremymccurdy-redspace Jul 25, 2024
6d9491e
Styling changes so the demo fits on the page better, and that the eve…
jeremymccurdy-redspace Jul 25, 2024
899b8d1
- Added captions control to the demo page.
jeremymccurdy-redspace Jul 25, 2024
4a318e2
Merge commit '40c38f56102e4a2b4654c889416042deca75b81a' into feature/…
jeremymccurdy-redspace Jul 25, 2024
de820a1
Added resize example using SafeScaleManager. Changed the examples sid…
jeremymccurdy-redspace Jul 30, 2024
71e1130
Merge pull request #25 from SpringRoll/feature/187901141-Update-Game-…
jeremymccurdy-redspace Jul 30, 2024
1ac6e6e
Merge branch 'docusaurus-update' into feature/187876831-Examples-Resize
jeremymccurdy-redspace Jul 30, 2024
5858ece
Starting filter example implementation
jeremymccurdy-redspace Jul 31, 2024
61c14b0
Removed unnecessary speechSynthesis check
jeremymccurdy-redspace Jul 31, 2024
ea4e0ae
Ported the color filter example
jeremymccurdy-redspace Aug 1, 2024
59765fc
Merge pull request #26 from SpringRoll/feature/187876831-Examples-Resize
jeremymccurdy-redspace Aug 6, 2024
4f252cc
Ported the controls example over
jeremymccurdy-redspace Aug 6, 2024
94b17d7
Merge branch 'feature/187876834-Examples-Controls' into feature/18787…
jeremymccurdy-redspace Aug 7, 2024
f3c5176
setup
902seanryan Aug 7, 2024
fd5850e
Merge branch 'docusaurus-update' into feature/187876836-bellhop
902seanryan Aug 7, 2024
e5b22f8
Merge pull request #28 from SpringRoll/feature/187876834-Examples-Con…
jeremymccurdy-redspace Aug 8, 2024
c705cb4
start setting up child
902seanryan Aug 8, 2024
f996993
Merge branch 'docusaurus-update' into feature/187876836-bellhop
902seanryan Aug 8, 2024
5b4755a
Ported indexed DB example.
jeremymccurdy-redspace Aug 16, 2024
9db346e
Adding data table component. It's a very simple replacement for the c…
jeremymccurdy-redspace Aug 16, 2024
03b9bf8
Data for the example. Split it into its own file for readability and …
jeremymccurdy-redspace Aug 16, 2024
e66d298
Added a component to represent the docs for the example, a port from …
jeremymccurdy-redspace Aug 16, 2024
6924405
re-do example
902seanryan Aug 20, 2024
14b04ee
cleanup
902seanryan Aug 20, 2024
74f2492
Updating styling of example, code cleanup & documentation, and lots o…
jeremymccurdy-redspace Aug 20, 2024
6396f75
Changed import of ColorFilter to only happen if the DOM is available,…
jeremymccurdy-redspace Aug 20, 2024
5825632
Merge pull request #30 from SpringRoll/bugfix/colorfilter_dom_check
jeremymccurdy-redspace Aug 21, 2024
fa870ba
Merge branch 'docusaurus-update' into feature/187876837-Examples-Inde…
jeremymccurdy-redspace Aug 21, 2024
e506abc
- Fixed errors with empty fields.
jeremymccurdy-redspace Aug 21, 2024
8dd27b0
Fixed spacing and alignment in the help section
jeremymccurdy-redspace Aug 22, 2024
e2da053
Fixed styling on X button
jeremymccurdy-redspace Aug 22, 2024
9c698b7
Merge pull request #31 from SpringRoll/docusaurus-update
jeremymccurdy-redspace Aug 22, 2024
be6ec56
Merge branch 'develop' into feature/187876837-Examples-IndexedDB
jeremymccurdy-redspace Aug 22, 2024
e5f323b
Removed commented out style
jeremymccurdy-redspace Aug 22, 2024
323c129
Updating Docusaurus to 3.5.2
jeremymccurdy-redspace Aug 22, 2024
51a1def
Merge pull request #29 from SpringRoll/feature/187876836-bellhop
902seanryan Aug 26, 2024
54fd582
Merge pull request #33 from SpringRoll/chore/188149517-Update-Docusau…
jeremymccurdy-redspace Aug 27, 2024
540f88d
Updated readme with UMD info
jeremymccurdy-redspace Aug 27, 2024
875bb26
Moved IndexedDB SpringRoll UMD file to the same directory as the HTML…
jeremymccurdy-redspace Aug 27, 2024
7670dd8
Added missing .map file for SpringRoll umd
jeremymccurdy-redspace Aug 27, 2024
da84baf
Merge pull request #32 from SpringRoll/feature/187876837-Examples-Ind…
jeremymccurdy-redspace Aug 27, 2024
a07d079
Forklifting the demo game script over
chipbell4 Sep 9, 2024
30f14f2
Startup scripts to make sure the demo is in place
chipbell4 Sep 9, 2024
05428b9
using a relative reference instead
chipbell4 Sep 9, 2024
b38cef4
Merge pull request #40 from SpringRoll/feature/local-references
chipbell4 Sep 10, 2024
e285a84
Updated iframe paths to fix issues on the dev site. Also, the path to…
jeremymccurdy-redspace Sep 11, 2024
93f2cf1
Merge pull request #41 from SpringRoll/bugfix/188226690-Fix-a-dead-link
jeremymccurdy-redspace Sep 11, 2024
83307d8
Replaced feature icons and made them adapt to dark mode.
jeremymccurdy-redspace Sep 13, 2024
4785f44
Added a PBS Kids section to the homepage
jeremymccurdy-redspace Sep 13, 2024
98599d5
Cleaning up css
jeremymccurdy-redspace Sep 13, 2024
0ef1237
Removed unused import
jeremymccurdy-redspace Sep 13, 2024
91dc343
Removing blog and announcement display from config
jeremymccurdy-redspace Sep 13, 2024
d9b48c9
Deleted placeholder blogs
jeremymccurdy-redspace Sep 13, 2024
870363d
Merge pull request #43 from SpringRoll/chore/188266513-Remove-SpringR…
jeremymccurdy-redspace Sep 20, 2024
ea15de2
Changing paths to JS files in Bellhop and Indexed DB examples because…
jeremymccurdy-redspace Sep 20, 2024
2e1acb7
Updated home page copy
jeremymccurdy-redspace Sep 23, 2024
2775f53
Merge pull request #42 from SpringRoll/feature/187838794-homepage-icons
jeremymccurdy-redspace Sep 23, 2024
ea778f1
Merge pull request #44 from SpringRoll/bugfix/188226690-JS-Paths
jeremymccurdy-redspace Sep 23, 2024
ee9bf0c
Updating the homepage PBS KIDS copy with the final approved version
jeremymccurdy-redspace Oct 1, 2024
e55c7ff
Merge pull request #45 from SpringRoll/feature/187838794-Update-Homep…
jeremymccurdy-redspace Oct 3, 2024
a607a39
Re-added the changelog and updated it with an abridged version of the…
jeremymccurdy-redspace Oct 10, 2024
74cae6e
Fixed some heading consistency problems on the changelog
jeremymccurdy-redspace Oct 10, 2024
0f80dfe
Merge branch 'main' of github.com:SpringRoll/springroll.io into relea…
jeremymccurdy-redspace Oct 11, 2024
654b693
Fix code scanning alert no. 4: DOM text reinterpreted as HTML
jeremymccurdy-redspace Oct 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 0 additions & 41 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Each line is a file pattern followed by one or more owners.

# These owners will be the default owners for everything in the repo.
* @902seanryan @aberkie @deycorinne
* @902seanryan @deycorinne
25 changes: 21 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
node_modules
dist
public/springroll-io-demo-game
springroll-io-demo-game
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader
static/springroll-io-demo-game

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.9.0
5 changes: 0 additions & 5 deletions .postcssrc.js

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,45 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.0] - 2024-10-11
## Changed
- This is a complete rewrite of SpringRoll.io using the [Docusaurus](https://docusaurus.io/) framework.
- The site now uses React instead of Vue, and is responsive.
- All example content has been ported over. It's included as part of the `Examples` section. `Game Demo` and `Scale Manager` have also been moved to this section.
- All example UI elements have been updated to follow the styles and standards of the new site. Notable updates will be outlined below.

#### Game Demo Changes
- The game demo has had all of its packages updated.
- Implemented `SafeScaleManager`.
- The title screen has been updated.
- Captions styling has been updated.
- The demo is now displayed using SpringRoll Container instead of just using Bellhop.

#### Color Filter Changes
- The example image is no longer stretched.

#### Resize Changes
- This example now uses the `SafeScaleManager` instead of `ScaleManager`.

#### Bellhop
- This example has been simplified to only demonstrate how to use Bellhop without using SpringRoll specific events.

#### Indexed DB
- The data display table was rewritten and simplified. It was using a built-in Vue component.
- The help section below the example now has a horizontal row of tabs instead of vertical.
- There are new error checks for things that used to silently fail.
- A few bugs were identified in the SpringRoll IDB implementation. Opening and deleting stores with incorrect version numbers can cause errors. This shouldn't affect most users under normal circumstances, but we've made a ticket to address this.

## Added
- PBS KIDS branding and a brief write-up about the team’s work on the project have been added to the homepage.

## Removed
- API documentation has been removed.
- Captions Studio has been removed. It is now part of SpringRoll Studio.
- The SpringRoll 1 section has been removed.
- The GitHub wiki link to SpringRoll 1 documentation has also been removed.


## [2.1.0] - 2021-03-04
## Added
- This changelog
Expand Down
87 changes: 76 additions & 11 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,18 +1,83 @@
# [Springroll.io](https://springroll.io/)
The [docs site](http://springroll.io/) has been completely rewritten from the ground up using the [Docusaurus](https://docusaurus.io/) framework. It's a React-based static doc site generator. The layout is responsive and has a dark mode. The new documentation is designed to be more user-friendly, with improved navigation and a better reading experience.

This is the repository for the [springroll.io](https://springroll.io/) site. Due to an issue with Github's hosting practices, the source code and the built version of [springroll.io](https://springroll.io/) can't be in the same repository. To update [springroll.io](https://springroll.io/), you must push the built version of [springroll.io](https://springroll.io/) to the [deployment repository](https://github.com/SpringRoll/SpringRoll.github.io)
All of the documentation for SpringRoll and SpringRoll Container has been added to the new site. This will be where documentation for those repositories will belong.

## Commands
At the moment, the documentation is just a direct copy of those repositories. We are planning to re-organize and update the documentation to make it easier to navigate and read.

### serve - Runs the dev server
PBS KIDS branding and a brief write-up about the team’s work on the project have been added to the homepage.

### build - Builds site for deployment

### Ported Content
All example content has been moved over to the new docs site. It's all included as part of the `Examples` section. `Game Demo` and `Scale Manager` have also been moved to this section.

## Notes
### SafeScaleManagerDemo
To get this to work properly you'll have to update the path names.
e.g.
`src="main.js"` => `src="/SafeScaleManagerDemo/main.js"`
#### Example changes
###### Game Demo
- The node packages in the project have all been updated, including SpringRoll.
- The demo now implements the SpringRoll `SafeScaleManager`, allowing it to scale down to fit smaller screens.
- The title screen has been updated with the correct capitalization.
- Captions styling has been updated to match the style used in most PBS KIDS games.
- The sidebar buttons and game event indicators have been updated to match the new docs site styling and work in dark mode.
- The demo is now displayed using SpringRoll Container instead of just using Bellhop.

You'll also have to edit main.js directly to update the path for the Springroll logo

###### Speech Synth
- The example is the same, just with styling from the docs site.

###### Color Filter
- The example image is no longer stretched.
- The rest is the same, just with the new styling.

###### Resize
- This example now uses the `SafeScaleManager` as the original `ScaleManager` is deprecated. Code examples represent this too.
- The rest is the same, just with the new styling.

###### Bellhop
- This example has been simplified to only demonstrate how to use Bellhop without using SpringRoll specific events.

###### Controls
- The example is the same, just with styling from the docs site.

###### Indexed DB
- The data display table is simplified from the original version, because it was using a built in Vue component. This new table still shows everything in the data store, but is not sortable or paginated.
- The help section below the example now has a horizontal row of tabs instead of vertical. This was done to keep the page responsive.
- The example's colors and styling were updated to make it fit in with the new site, and to not be jarring when viewed in dark mode. The layout is also now responsive.
- There are some new error checks for things like empty fields. These were throwing error logs to the console on the original.
- A few bugs were identified in the SpringRoll IDB implementation. Opening and deleting stores with incorrect version numbers can cause errors. This shouldn't affect most users under normal circumstances, but we've made a ticket to address this.


### Removed Content
- API documentation has been removed. It was automatically generated from code comments, but hasn't been actively maintained or organized.
- Captions Studio has been removed. It is now part of SpringRoll Studio.
- The SpringRoll 1 section has been removed. It's no longer relevant as all developers should be using SpringRoll 2.
- The GitHub wiki link to SpringRoll 1 documentation has also been removed.

---------------------
## Setup and Development
### Installation

```
$ npm install
```

### Local Development

```
$ npm start
```

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

### Build

```
$ npm run build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.


### Examples

#### IndexedDB

The IndexedDB example iframe content is stored in `static/idbExample/`. It currently uses the `2.6.0` version of `SpringRoll-umd.js`.
22 changes: 2 additions & 20 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
module.exports = {
'presets': [
[
'@vue/app',
{
'useBuiltIns': 'entry'
}
]
],
'plugins': [
[
'transform-imports',
{
'vuetify': {
'transform': 'vuetify/es5/components/${member}',
'preventFullImport': true
}
}
]
]
};
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
};
8 changes: 8 additions & 0 deletions docs/Examples/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Examples",
"position": 3,
"link": {
"type": "generated-index",
"description": "Demos and Implementation Examples for SpringRoll"
}
}
5 changes: 5 additions & 0 deletions docs/Examples/bellhop.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import BellhopExample from '../../src/components/BellhopExample'

# Bellhop

<BellhopExample />
8 changes: 8 additions & 0 deletions docs/Examples/controls.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


import ControlsExample from '../../src/components/Controls'


# Controls

<ControlsExample />
8 changes: 8 additions & 0 deletions docs/Examples/filter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


import ColorFilterExample from '../../src/components/ColorFilter'


# Color Filter

<ColorFilterExample />
9 changes: 9 additions & 0 deletions docs/Examples/game.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import GameDemo from '../../src/components/GameDemo'

# Game Demo

<GameDemo />

<span style={{textAlign: 'center', marginTop: -5}}>
[Source code for the game](https://github.com/SpringRoll/springroll-io-demo-game)
</span>
5 changes: 5 additions & 0 deletions docs/Examples/indexeddb.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import IndexedDBExample from '../../src/components/IndexedDB'

# IndexedDB

<IndexedDBExample/>
9 changes: 9 additions & 0 deletions docs/Examples/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 1
sidebar_label: Introduction
sidebar_class_name: green
---

# Introduction

This is a collection of examples for the SpringRoll toolset. Each example is a standalone project that demonstrates specific features.
8 changes: 8 additions & 0 deletions docs/Examples/resize.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


import ResizeExample from '../../src/components/Resize'


# Resize

<ResizeExample />
5 changes: 5 additions & 0 deletions docs/Examples/speechsynth.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import SpeechSynthExample from '../../src/components/SpeechSynth'

# Speech Synth

<SpeechSynthExample />
47 changes: 47 additions & 0 deletions docs/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
sidebar_position: 1
---

# Tutorial Intro

Let's discover **Docusaurus in less than 5 minutes**.

## Getting Started

Get started by **creating a new site**.

Or **try Docusaurus immediately** with **[docusaurus.new](https://docusaurus.new)**.

### What you'll need

- [Node.js](https://nodejs.org/en/download/) version 18.0 or above:
- When installing Node.js, you are recommended to check all checkboxes related to dependencies.

## Generate a new site

Generate a new Docusaurus site using the **classic template**.

The classic template will automatically be added to your project after you run the command:

```bash
npm init docusaurus@latest my-website classic
```

You can type this command into Command Prompt, Powershell, Terminal, or any other integrated terminal of your code editor.

The command also installs all necessary dependencies you need to run Docusaurus.

## Start your site

Run the development server:

```bash
cd my-website
npm run start
```

The `cd` command changes the directory you're working with. In order to work with your newly created Docusaurus site, you'll need to navigate the terminal there.

The `npm run start` command builds your website locally and serves it through a development server, ready for you to view at http://localhost:3000/.

Open `docs/intro.md` (this page) and edit some lines: the site **reloads automatically** and displays your changes.
8 changes: 8 additions & 0 deletions docs/springroll-container/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "SpringRoll - Container",
"position": 2,
"link": {
"type": "generated-index",
"description": "SpringRoll Container"
}
}
Loading