Skip to content

Commit 34ee4bc

Browse files
Merge pull request #18 from developmentseed/stac-manager
Rewrite application with form plugin system and new design
2 parents d549e9d + e2d7e23 commit 34ee4bc

File tree

191 files changed

+30064
-14347
lines changed

Some content is hidden

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

191 files changed

+30064
-14347
lines changed

.env.example

-1
This file was deleted.

.eslintrc

-63
This file was deleted.

.github/workflows/deploy-gh.yml

+77
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Deploy Github Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- 'stac-manager'
7+
8+
env:
9+
PUBLIC_URL: ${{ vars.PUBLIC_URL }}
10+
REACT_APP_STAC_API: ${{ vars.REACT_APP_STAC_API }}
11+
REACT_APP_STAC_BROWSER: ${{ vars.REACT_APP_STAC_BROWSER }}
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
permissions:
18+
contents: write
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Use Node.js
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version-file: '.nvmrc'
32+
33+
- name: Cache node_modules
34+
uses: actions/cache@v3
35+
id: cache-node-modules
36+
with:
37+
path: node_modules
38+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
39+
40+
- name: Cache dist
41+
uses: actions/cache@v3
42+
id: cache-dist
43+
with:
44+
path: packages/client/dist
45+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
46+
47+
- name: Install
48+
run: npm install
49+
50+
- name: Build
51+
run: npm run all:build
52+
53+
deploy:
54+
runs-on: ubuntu-latest
55+
needs: build
56+
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v4
60+
61+
- name: Restore dist cache
62+
uses: actions/cache@v3
63+
id: cache-dist
64+
with:
65+
path: packages/client/dist
66+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
67+
68+
- name: Copy index as 400 file for github pages
69+
run: cp packages/client/dist/index.html packages/client/dist/400.html
70+
71+
- name: Deploy 🚀
72+
uses: JamesIves/github-pages-deploy-action@v4
73+
with:
74+
branch: gh-pages
75+
clean: true
76+
single-commit: true
77+
folder: packages/client/dist

.github/workflows/deploy.yml

-56
This file was deleted.

.gitignore

+56-18
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,61 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
1+
################################################
2+
############### .gitignore ##################
3+
################################################
4+
#
5+
# This file is only relevant if you are using git.
6+
#
7+
# Files which match the splat patterns below will
8+
# be ignored by git. This keeps random crap and
9+
# and sensitive credentials from being uploaded to
10+
# your repository. It allows you to configure your
11+
# app for your machine without accidentally
12+
# committing settings which will smash the local
13+
# settings of other developers on your team.
14+
#
15+
# Some reasonable defaults are included below,
16+
# but, of course, you should modify/extend/prune
17+
# to fit your needs!
18+
################################################
219

3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.js
20+
node_modules
721

8-
# testing
9-
/coverage
1022

11-
# production
12-
/build
23+
################################################
24+
# Node.js / NPM
25+
#
26+
# Common files generated by Node, NPM, and the
27+
# related ecosystem.
28+
################################################
29+
30+
lib-cov
31+
*.seed
32+
*.log
33+
*.out
34+
*.pid
35+
npm-debug.log
36+
yarn-error.log
37+
.parcel-cache
1338

14-
# misc
15-
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
2039

21-
npm-debug.log*
22-
yarn-debug.log*
23-
yarn-error.log*
40+
################################################
41+
# Miscellaneous
42+
#
43+
# Common files generated by text editors,
44+
# operating systems, file systems, etc.
45+
################################################
46+
47+
*~
48+
*#
49+
.DS_STORE
50+
.DS_Store
51+
.netbeans
52+
nbproject
53+
.idea
54+
.resources
55+
.node_history
56+
temp
57+
tmp
58+
.tmp
59+
dist
60+
parcel-bundle-reports
61+
.nx

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "none",
4+
"singleQuote": true,
5+
"jsxSingleQuote": true,
6+
"printWidth": 80
7+
}

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Code of Conduct for STAC-Admin Interface
1+
# STAC-Manager 📡 📄 — Code of Conduct
22

33
## Our Pledge
44

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Contributing to STAC-Admin Interface
1+
# STAC-Manager 📡 📄 — Contributing
22

3-
First off, thank you for considering contributing to the STAC-Admin Interface! People like you make the open-source community a great place to learn, inspire, and create.
3+
First off, thank you for considering contributing to the STAC-Manager Interface! People like you make the open-source community a great place to learn, inspire, and create.
44

55
## How to Contribute
66

@@ -32,4 +32,4 @@ Our project adheres to a code of conduct. By participating, you are expected to
3232
## Getting Help
3333
If you need help, feel free to create an issue or contact the project maintainers.
3434

35-
Thank you for contributing to the STAC-Admin Interface!
35+
Thank you for contributing to the STAC-Manager Interface!

DEVELOPMENT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# STAC-Manager 📡 📄 — Development
2+
3+
## Installation and Usage
4+
The steps below will walk you through setting up your own instance of the project.
5+
6+
### Install Project Dependencies
7+
To set up the development environment for this website, you'll need to install the following on your system:
8+
9+
- [Node](http://nodejs.org/) v20 (To manage multiple node versions we recommend [nvm](https://github.com/creationix/nvm))
10+
11+
### Install Application Dependencies
12+
13+
If you use [`nvm`](https://github.com/creationix/nvm), activate the desired Node version:
14+
15+
```
16+
nvm install
17+
```
18+
19+
Install Node modules:
20+
21+
```
22+
npm install
23+
```
24+
25+
### Running the App
26+
27+
To run the client app in development mode:
28+
```
29+
npm run plugins:build
30+
npm run client:serve
31+
```
32+
33+
If you're going to work on the form builder plugin system as well, you may want to run the watch mode on the packages:
34+
```
35+
npm run plugins:watch
36+
```
37+
38+
### Building for Production
39+
Build the app for production:
40+
```
41+
npm run all:build
42+
```
43+
This bundles the app in production mode, optimizing the build for performance. The build is minified, and filenames include hashes.
44+
45+
## Contributing
46+
Contributions are welcome. Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

LICENSE.md LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

0 commit comments

Comments
 (0)