Skip to content

Commit

Permalink
CU-8685z4x38 Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ucswift committed Oct 12, 2023
1 parent 7f48f5a commit 2f6a7ff
Show file tree
Hide file tree
Showing 744 changed files with 72,256 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries

# For the full list of supported browsers by the Angular framework, please see:
# https://angular.io/guide/browser-support

# You can see what browsers were selected by your queries by running:
# npx browserslist

last 1 Chrome version
last 1 Firefox version
last 2 Edge major versions
last 2 Safari major versions
last 2 iOS major versions
Firefox ESR
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line.
9 changes: 9 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version = 1

[[analyzers]]
name = "javascript"
enabled = true

[analyzers.meta]
environment = ["browser"]
plugins = ["angular"]
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = tab
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = off

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
65 changes: 65 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"root": true,
"ignorePatterns": ["projects/**/*"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json", "e2e/tsconfig.json"],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-class-suffix": [
"error",
{
"suffixes": ["Page", "Component"]
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variable",
"format": ["camelCase", "PascalCase"]
},
{
"selector": "property",
"format": ["camelCase", "PascalCase"]
}
],
"eol-last": [
"error", "never"
],
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-underscore-dangle": "off",
"@typescript-eslint/object-shorthand": ["never"]
}
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended"],
"rules": {}
}
]
}
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
26 changes: 26 additions & 0 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Auto approve

on:
issue_comment:
types:
- created

jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v6
name: Approve LGTM Review
if: github.actor == 'ucswift' && contains(github.event.comment.body, 'Approve')
with:
script: |
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.issue.number,
review_id: 1,
event: 'APPROVE',
body: 'This PR is approved.'
})
26 changes: 26 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI Build

on:
pull_request:
types:
- opened
- edited
- labeled
- unlabeled

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore

*~
*.sw[mnpcod]
.tmp
*.tmp
*.tmp.*
*.sublime-project
*.sublime-workspace
.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
$RECYCLE.BIN/

*.log
log.txt
npm-debug.log*

/.angular
/.idea
/.ionic
/.sass-cache
/.sourcemaps
/.versions
/.vscode
/coverage
/dist
/node_modules
/platforms
/plugins
/www
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
### STAGE 1: Build ###
FROM node:18.16.0-alpine AS build
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build -- --configuration=production

### STAGE 2: Run ###
FROM nginx:1.21.6-alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/www /usr/share/nginx/html

# Expose port 80
EXPOSE 80

# When the container starts, replace the env.js with values from environment variables
CMD ["/bin/sh", "-c", "envsubst < /usr/share/nginx/html/assets/env.prod.js > /usr/share/nginx/html/assets/env.js && exec nginx -g 'daemon off;'"]
119 changes: 119 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<div align='center'>

<h1>Resgrid Responder Application</h1>
<p>Resgrid Responder App which is small mobile application or PWA to give personnel in a department the options to interact with it. Set staffing, status, respond to calls, send messages, signup for shifts, read docs and more</p>



<h4> <a href=h>View Demo</a> <span> · </span> <a href="https://github.com/Resgrid/Responder/blob/master/README.md"> Documentation </a> <span> · </span> <a href="https://github.com/Resgrid/Responder/issues"> Report Bug </a> <span> · </span> <a href="https://github.com/Resgrid/Responder/issues"> Request Feature </a> </h4>


</div>

# :notebook_with_decorative_cover: Table of Contents

- [About the Project](#star2-about-the-project)
- [Roadmap](#compass-roadmap)
- [FAQ](#grey_question-faq)
- [License](#warning-license)


## :star2: About the Project

### :camera: Screenshots




### :dart: Features
- Directed at Personnel and the Phone form factor
- Set your Personal Status and Staffing Level
- Get Call Information and update, close and create calls
- Get Shift Information and signup for Shifts
- View the Department Calendar and Signup to Events
- Send and Receive Messages


### :key: Environment Variables
To run this project, you will need to add the following environment variables to your .env file
`baseApiUrl`

`resgridApiUrl`

`channelUrl`

`channelHubName`

`realtimeGeolocationHubName`

`logLevel`

`isDemo`

`demoToken`

`loggingKey`

`appKey`



## :toolbox: Getting Started

### :gear: Installation

Install Deps
```bash
npm ci
```
Build App
```bash
npm run build
```
Start Local Sim
```bash
npm run start
```
To copy web assets to native projects
```bash
npx cap sync
```


### :running: Run Locally

Clone the project

```bash
https://github.com/Resgrid/Responder
```
Go to project directory
```bash
cd Responder
```
Install dependencies
```bash
npm ci
```
Start the web server
```bash
npm run start
```


## :compass: Roadmap

* [x] Open Source Responder App


## :grey_question: FAQ

- Can I deploy the Responder App to Google Play or the Apple App Store
- You can but you cannot inclue "Resgrid" in the name of your application in the name of the application or the store listing.
- What Do I need to Change to Deploy the Responder App to the stores
- You will need to search for all occurrences of com.wavetech.Resgrid" or "wtdt.wavetech.Resgrid" and replace it with your app id. You will need to replace the icons, logos, splash screen images with your own.


## :warning: License

Distributed under the Apache License 2.0. See LICENSE.txt for more information.
Loading

0 comments on commit 2f6a7ff

Please sign in to comment.