Skip to content

Commit

Permalink
Merge pull request #29 from kwheelan/dev
Browse files Browse the repository at this point in the history
Update main branch + Git Pages deployment
  • Loading branch information
kwheelan authored Jul 17, 2024
2 parents 98e1016 + 7649099 commit 402cc52
Show file tree
Hide file tree
Showing 87 changed files with 6,032 additions and 735 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Ignore all .xlsx files
# *.xlsx

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Bower dependency directory (https://bower.io/)
bower_components

# Dependency directories
node_modules/
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,29 @@
Still in development.

See deployment here: https://kwheelan.github.io/Departmental-Budget-Request-Form

## Contributing

This repo uses yarn for package management and webpack for a
development server and production bundler.

### Setup

Install Node.js (recommend using [nvm](https://github.com/nvm-sh/nvm)) and [yarn](https://classic.yarnpkg.com/lang/en/docs/install/) if you don't have it already.

Install package dependencies:
```bash
yarn
```

Run the development server:
```bash
yarn start
```

### Creating a New Release

Run webpack bundler:
```bash
yarn build
```
1 change: 1 addition & 0 deletions build/bundle.js

Large diffs are not rendered by default.

File renamed without changes
1 change: 1 addition & 0 deletions build/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Demo Budget Form</title><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" crossorigin="anonymous"><link href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap" rel="stylesheet"><script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" crossorigin="anonymous"></script><script src="https://cdn.jsdelivr.net/npm/popper.js@1.9.4/dist/umd/popper.min.js" crossorigin="anonymous"></script><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" crossorigin="anonymous"></script><script defer="defer" src="bundle.js"></script></head><body><header><img src="d027d45141f87dc014af.png" alt="City of Detroit Logo" id="logo"><h1>FY2026 Budget Form</h1><h2 id="subtitle"></h2></header><div id="main-panel"><div id="welcome-page"><button class="btn step" id="step-upload">1. Upload your Excel data</button> <button class="btn step" id="step-revenue">2. Baseline request</button> <button class="btn step" id="step-initiatives">3. Name any new initiatives</button> <button class="btn step" id="step-finish">4. Confirm and finish</button></div><div id="prompt-div"><h3 id="prompt"></h3><br><button class="btn" id="option1"></button> <button class="btn" id="option2"></button></div><div class="table-container"><table class="table table-bordered mt-3" id="main-table"><thead class="thead-dark"></thead><tbody></tbody></table></div><div class="row"><div id="add-btn-div"><button class="btn btn-add" id="add-btn"></button></div></div><div class="row"><div class="col-md-12"><div id="nav-btns"><button class="btn" id="btn-last"><strong>&lt;&lt; Previous</strong></button> <button class="btn" id="btn-next"><strong>Continue &gt;&gt;</strong></button></div></div></div></div><div id="sidebar-panel"><div class="sidebar-content"><br><h4 id="sidebar-title">Summary</h4><br><h6 id="section-header"><strong>Baseline</strong></h6><div id="baseline-stats"><div class="sidebar-stat-line" id="target"><span class="stat-label">FY26 target:</span> <span class="stat"></span></div><div class="sidebar-stat-line" id="baseline-revenue"><span class="stat-label">Projected revenue:</span> <span class="stat"></span></div><div class="sidebar-stat-line" id="baseline-personnel"><span class="stat-label">Personnel cost:</span> <span class="stat"></span></div><div class="sidebar-stat-line" id="baseline-nonpersonnel"><span class="stat-label">Non-personnel cost:</span> <span class="stat"></span></div><div class="sidebar-stat-line" id="baseline-total"><span class="stat-label">Total baseline:</span> <span class="stat"></span></div></div><br><h6 id="section-header"><strong>Supplemental</strong></h6><div id="supp-stats"><div class="sidebar-stat-line" id="supp-revenue"><span class="stat-label">Revenue:</span> <span class="stat"></span></div><div class="sidebar-stat-line" id="supp-personnel"><span class="stat-label">Personnel cost:</span> <span class="stat"></span></div><div class="sidebar-stat-line" id="supp-nonpersonnel"><span class="stat-label">Non-personnel cost:</span> <span class="stat"></span></div><div class="sidebar-stat-line" id="supp-total"><span class="stat-label">Total supplemental:</span> <span class="stat"></span></div></div></div></div><div class="modal fade" id="main-modal" tabindex="-1"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h5 class="modal-title" id="modal-title"></h5><button type="button" id="modal-close-x" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div><div class="modal-body" id="modal-body"></div></div></div></div></body></html>
6 changes: 0 additions & 6 deletions data/law_dept_sample/funds.json

This file was deleted.

29 changes: 0 additions & 29 deletions data/law_dept_sample/nonpersonnel_data.json

This file was deleted.

23 changes: 0 additions & 23 deletions data/law_dept_sample/personnel_data.json

This file was deleted.

10 changes: 0 additions & 10 deletions data/law_dept_sample/services.json

This file was deleted.

39 changes: 0 additions & 39 deletions data/law_dept_sample/strings.json

This file was deleted.

25 changes: 0 additions & 25 deletions js/components/form/subcomponents/dropdown.js

This file was deleted.

47 changes: 0 additions & 47 deletions js/components/table/subcomponents/data.js

This file was deleted.

5 changes: 0 additions & 5 deletions js/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
import { loadPageState } from './utils/data_utils/local_storage_handlers.js'
import { visitPage } from './views/view_logic.js'

// path for my laptop
// export let DATA_ROOT = '../../../data/law_dept_sample/'
// github path
export let DATA_ROOT = '../../budget-request-demo/data/law_dept_sample/'

export let REVENUE = 0;
export let TARGET = 2000000;
export var FISCAL_YEAR = '26';
Expand Down
12 changes: 0 additions & 12 deletions js/utils/data_utils/JSON_data_handlers.js

This file was deleted.

12 changes: 0 additions & 12 deletions js/utils/data_utils/excel_export.js

This file was deleted.

96 changes: 0 additions & 96 deletions js/utils/data_utils/local_storage_handlers.js

This file was deleted.

Empty file removed js/views/03_revenue/helpers.js
Empty file.
Loading

0 comments on commit 402cc52

Please sign in to comment.