Skip to content

Commit

Permalink
Restructure configs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiah-carlson committed Sep 15, 2023
1 parent eaf231e commit 57928c9
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 5 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-static-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Static Test
on: [workflow_dispatch]

jobs:
run-build:
runs-on: ubuntu-latest
environment: test
defaults:
run:
working-directory: ./www
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: echo $CONFIG_FILE > ./src/configs/config.js
- run: npm install .
- run: npm run build
- uses: actions/upload-artifact@v3
with:
path: ./www/dist

2 changes: 2 additions & 0 deletions www/src/configs/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {default as Default} from "./scanners/default";
export {default as Concert} from "./scanners/concert";
2 changes: 0 additions & 2 deletions www/src/configs/modules/production.js

This file was deleted.

2 changes: 0 additions & 2 deletions www/src/configs/modules/test.js

This file was deleted.

37 changes: 37 additions & 0 deletions www/src/configs/scanners/concert.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const conf = {
debug: false,
output: {
origin: origin,
path: 'scan/output/',
},
delims: {
settings: '@@',
mainInput: '-'
},
categories: [
{
name: 'city',
options: ['Austin','Atlanta','Tennessee', 'Chicago','Baltimore','New Orleans','Boulder', 'NYC']
},
{
name: 'artist',
options: ['Lightning Hopkins', 'SRV', 'Eric Clapton', 'Muddy Waters', 'Lemon Jefferson', 'Buddy Guy', 'John Hurt']
},
{
name: 'ticket',
options: ['General','Backstage','VIP', 'Staff']
},
{
name: 'night',
options: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
},
],
input: {
labels: ['ticketNo', 'section', 'seat'],
constants: {
'company': 'Ticket CO.',
},
},
};

export default conf;
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion www/src/pages/Production.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Abstract from './Abstract';

import * as Configs from "../configs/modules/production"
import * as Configs from "../configs/config"

export const Pages = Object.entries(Configs).map((cfg)=>{
return {
Expand Down

0 comments on commit 57928c9

Please sign in to comment.