Compare commits
142 Commits
1.0.0
...
04b302625f
| Author | SHA1 | Date | |
|---|---|---|---|
| 04b302625f | |||
| 3098886938 | |||
| 7dda34ec19 | |||
| f68213955e | |||
| 4a97d4bbd3 | |||
| e706057683 | |||
| 1fc1f7cfe2 | |||
| 625af2ed6a | |||
| 2cf0d62aad | |||
| 080c9d3a48 | |||
| 6ccae9aa1f | |||
| 718367fff1 | |||
| 540dddd6c6 | |||
| ab1ff083a6 | |||
| 950f9c7ea9 | |||
| f7a4e43bd6 | |||
| 1fd55d2ed9 | |||
| 333f935eee | |||
| 05cc7aa5c8 | |||
| 189c952db6 | |||
| a931c2c7c6 | |||
| 627c461d68 | |||
| 0a59e0b58d | |||
| 26672f92f9 | |||
| 12642dbf93 | |||
| 5eb6d7b038 | |||
| 51f536ff10 | |||
| d2addd327a | |||
| da8e9dda00 | |||
| 4dc75d9b0f | |||
| 415d176946 | |||
| a5ca7d8f04 | |||
| 3bc5b87593 | |||
| 12b89dbb1a | |||
| db9d674c79 | |||
| 91bd827c0d | |||
| cdf5724ac1 | |||
| 8cd59400ae | |||
| 73f59134f8 | |||
| 3a4a41f886 | |||
| fb4d150792 | |||
| 0f9ad782af | |||
| b73d017d7f | |||
| 76f6425d57 | |||
| a706de4769 | |||
| ca6736398d | |||
| 77557919fb | |||
| 95db753a17 | |||
| 7dd9b599f6 | |||
| 3fdc4030d8 | |||
| 2e9a625724 | |||
| bc6c20fac7 | |||
| 446ff01056 | |||
| b2bb5fcbfe | |||
| e81f3bdbe7 | |||
| 572b3a2701 | |||
| e19ead65d4 | |||
| e3cfe8246a | |||
| a0e0b8b4d8 | |||
| 6072ddc72a | |||
| f942b3db2f | |||
| 2438e88fda | |||
| 3908c9636d | |||
| 2e34a1f257 | |||
| b514cf0ad5 | |||
| 8e036aa9ff | |||
| dc3732cef9 | |||
| 7549b8e01f | |||
| c366458652 | |||
| 735ef9a87a | |||
| 03b3efbb7a | |||
| be9ffd160a | |||
| a5aa7f9a8f | |||
| 8cd4193971 | |||
| 525f1e2762 | |||
| 6b756f34e8 | |||
| 4c3746e347 | |||
| 4a9a048201 | |||
| 54ceab4d52 | |||
| 44c2f162bf | |||
| 6b29d7ce08 | |||
| 042b20db50 | |||
| a1db74dd64 | |||
| 0cc72b975b | |||
| cc03c4b7df | |||
| 2f43748c9d | |||
| 572ecd07db | |||
| f90ff40c90 | |||
| ff637c9a8a | |||
| 8b1836e33c | |||
| c0a005104b | |||
| bec0ae044f | |||
| 01edb28188 | |||
| 9471a8bb31 | |||
| 3d564294bf | |||
| 1c3ecb5c1f | |||
| 76a7f8f666 | |||
| d42fc0c52a | |||
| 8838268698 | |||
| 6ad0d11cbd | |||
| db63b56b9a | |||
| 5d61191496 | |||
| abb3b55009 | |||
| da4153eb9b | |||
| 5b39c33abb | |||
| 3fecb274d1 | |||
| 270d87036c | |||
| 2ee596e851 | |||
| 356be5f099 | |||
| f5a922469f | |||
| b7c824bf6e | |||
| f199c920ae | |||
| 88be130719 | |||
| c8fd7339ca | |||
| f073023150 | |||
| 166ad3856a | |||
| c39f75aa0b | |||
| 99c127e9ab | |||
| 7e116416ad | |||
| 334c8257c6 | |||
| e4dcba3654 | |||
| 43261164dc | |||
| 6860bf3c40 | |||
| 3966342eff | |||
| 825dc1a563 | |||
| 64cb1dca15 | |||
| 561b5aea20 | |||
| d252956604 | |||
| 408a6c81ea | |||
| d0fa2c6490 | |||
| 28b80cbc94 | |||
| bb9ec6fecd | |||
| 5f01faaf9d | |||
| 55e8202b2b | |||
| e3b8b002d1 | |||
| ecaa8f22cd | |||
| ec89430245 | |||
| b3fa846253 | |||
| b320982932 | |||
| 96f77247da | |||
| c1fd7c4199 | |||
| 2bb1553731 |
@@ -1,16 +0,0 @@
|
|||||||
# 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
|
|
||||||
17
.github/issue_template/ai-refinement.md
vendored
Normal file
17
.github/issue_template/ai-refinement.md
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: "AI refinement"
|
||||||
|
about: "Use AI to refine ticket"
|
||||||
|
ref: "develop"
|
||||||
|
labels:
|
||||||
|
- Review/AI
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Describe your request:
|
||||||
|
|
||||||
|
What are you trying to do and what's happening?
|
||||||
|
|
||||||
|
How can it be fixed or improved?
|
||||||
|
|
||||||
|
Any other useful information? Logs, screenshots, steps to reproduce?
|
||||||
30
.github/issue_template/bug.md
vendored
Normal file
30
.github/issue_template/bug.md
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: "Bug report"
|
||||||
|
about: "Encountered an issue"
|
||||||
|
ref: "develop"
|
||||||
|
labels:
|
||||||
|
- Kind/Bug
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Bug Report
|
||||||
|
<!-- Description of problem -->
|
||||||
|
I tried to ...
|
||||||
|
|
||||||
|
But instead ...
|
||||||
|
|
||||||
|
## Steps to Reproduce
|
||||||
|
<!-- How can developers replicate & test the problem? -->
|
||||||
|
1. ...
|
||||||
|
2. ...
|
||||||
|
3. ...
|
||||||
|
|
||||||
|
## Logs
|
||||||
|
<!-- Any logs that accompanied the error -->
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
<!-- Screenshots (annotated if possible) of the problem -->
|
||||||
28
.github/issue_template/enhancement.md
vendored
Normal file
28
.github/issue_template/enhancement.md
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: "Enhancement"
|
||||||
|
about: "Request an enhancement"
|
||||||
|
ref: "develop"
|
||||||
|
labels:
|
||||||
|
- Kind/Enhancement
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Feature Request
|
||||||
|
<!-- Detailed description -->
|
||||||
|
As a...
|
||||||
|
|
||||||
|
I want to...
|
||||||
|
|
||||||
|
## Requirements
|
||||||
|
<!-- List of any requirements -->
|
||||||
|
- [ ] ...
|
||||||
|
- [ ] ...
|
||||||
|
- [ ] ...
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
<!-- Any additional design considerations -->
|
||||||
|
...
|
||||||
|
|
||||||
|
## Mockups
|
||||||
|
<!-- Any visual aids -->
|
||||||
26
.github/issue_template/refactor.md
vendored
Normal file
26
.github/issue_template/refactor.md
vendored
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: "Refactor"
|
||||||
|
about: "Refactor existing system"
|
||||||
|
ref: "develop"
|
||||||
|
labels:
|
||||||
|
- Kind/Refactor
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Refactor
|
||||||
|
<!-- Detailed description -->
|
||||||
|
The current...
|
||||||
|
|
||||||
|
Should be changed/updated to...
|
||||||
|
|
||||||
|
## Reasoning
|
||||||
|
- ...
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
<!-- What systems will this impact -->
|
||||||
|
- ...
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
<!-- Any additional design considerations -->
|
||||||
|
...
|
||||||
13
.github/pull_request_template.md
vendored
Normal file
13
.github/pull_request_template.md
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
## Description
|
||||||
|
<!-- Addition information & context -->
|
||||||
|
...
|
||||||
|
|
||||||
|
## Issues
|
||||||
|
<!-- Issues this PR will address -->
|
||||||
|
- closes #___
|
||||||
|
- owner/repo#___
|
||||||
|
|
||||||
|
## Checklist
|
||||||
|
<!-- Complete after creating PR -->
|
||||||
|
- [ ] Reviewed changes (or use `Review/AI` label)
|
||||||
|
- [ ] Updated comments/documentation
|
||||||
45
.github/workflows/build.yaml
vendored
Normal file
45
.github/workflows/build.yaml
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
name: Build and publish
|
||||||
|
run-name: Build and publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
container:
|
||||||
|
name: Build Container
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: docker
|
||||||
|
steps:
|
||||||
|
- name: Build Container
|
||||||
|
run: |
|
||||||
|
git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
||||||
|
DOCKER_HUB=$([ -n "${{secrets.DOCKER_HUB_USER}}" ] && [ -n "${{secrets.DOCKER_HUB_TOKEN}}" ] && [ -n "${{secrets.DOCKER_HUB_IMAGE}}" ] && echo "true" || echo "false")
|
||||||
|
REGISTRY="$(echo "${{github.server_url}}" | sed -E 's|https?://||')"
|
||||||
|
|
||||||
|
docker login -u "${{github.repository_owner}}" -p "${{secrets.DEPLOY_TOKEN}}" "$REGISTRY"
|
||||||
|
if [ "$DOCKER_HUB" = "true" ]; then docker login -u "${{secrets.DOCKER_HUB_USER}}" -p "${{secrets.DOCKER_HUB_TOKEN}}" docker.io; fi
|
||||||
|
|
||||||
|
docker build -t "$REGISTRY/${{github.repository}}:${{github.ref_name}}" .
|
||||||
|
docker push "$REGISTRY/${{github.repository}}:${{github.ref_name}}"
|
||||||
|
if [ "$DOCKER_HUB" = "true" ]; then
|
||||||
|
docker tag "$REGISTRY/${{github.repository}}:${{github.ref_name}}" "docker.io/${{secrets.DOCKER_HUB_IMAGE}}:${{github.ref_name}}"
|
||||||
|
docker push "docker.io/${{secrets.DOCKER_HUB_IMAGE}}:${{github.ref_name}}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${{github.ref_name}}" = "master" ]; then
|
||||||
|
docker tag "$REGISTRY/${{github.repository}}:${{github.ref_name}}" "$REGISTRY/${{github.repository}}:latest"
|
||||||
|
docker push "$REGISTRY/${{github.repository}}:latest"
|
||||||
|
if [ "$DOCKER_HUB" = "true" ]; then
|
||||||
|
docker tag "$REGISTRY/${{github.repository}}:${{github.ref_name}}" "docker.io/${{secrets.DOCKER_HUB_IMAGE}}:latest"
|
||||||
|
docker push "docker.io/${{secrets.DOCKER_HUB_IMAGE}}:latest"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
deploy:
|
||||||
|
name: Deploy Container
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: node
|
||||||
|
needs:
|
||||||
|
- container
|
||||||
|
steps:
|
||||||
|
- name: Deploy
|
||||||
|
run: curl -X POST https://manage.zakscode.com/api/stacks/webhooks/d0f72ae1-b623-44ef-ac13-e87da1270a40
|
||||||
29
.github/workflows/code-review.yaml
vendored
Normal file
29
.github/workflows/code-review.yaml
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Code review
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened, labeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
review:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: node:22
|
||||||
|
steps:
|
||||||
|
- name: Fetch code
|
||||||
|
run: |
|
||||||
|
git clone "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
||||||
|
git checkout ${{ github.event.pull_request.head.sha }}
|
||||||
|
git fetch origin ${{ github.event.pull_request.base.ref }}
|
||||||
|
|
||||||
|
- name: Create review
|
||||||
|
run: npx -y -p @ztimson/ai-agents@latest review $GITHUB_WORKSPACE
|
||||||
|
env:
|
||||||
|
AI_HOST: anthropic
|
||||||
|
AI_MODEL: claude-sonnet-4-5
|
||||||
|
AI_TOKEN: ${{ secrets.ANTHROPIC_TOKEN }}
|
||||||
|
GIT_HOST: ${{ github.server_url }}
|
||||||
|
GIT_OWNER: ${{ github.repository_owner }}
|
||||||
|
GIT_REPO: ${{ github.event.repository.name }}
|
||||||
|
GIT_TOKEN: ${{ secrets.ASSISTANT_TOKEN }}
|
||||||
|
GIT_BRANCH: origin/${{ github.event.pull_request.base.ref }}
|
||||||
|
PULL_REQUEST: ${{ github.event.pull_request.number }}
|
||||||
27
.github/workflows/release-creator.yaml
vendored
Normal file
27
.github/workflows/release-creator.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Release Bot
|
||||||
|
|
||||||
|
on:
|
||||||
|
milestone:
|
||||||
|
types: [closed]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: node:22
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
run: |
|
||||||
|
git clone "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
||||||
|
git checkout ${{ github.event.repository.default_branch }}
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
run: npx -y @ztimson/ai-agents@latest release
|
||||||
|
env:
|
||||||
|
AI_HOST: anthropic
|
||||||
|
AI_MODEL: claude-sonnet-4-5
|
||||||
|
AI_TOKEN: ${{ secrets.ANTHROPIC_TOKEN }}
|
||||||
|
GIT_HOST: ${{ github.server_url }}
|
||||||
|
GIT_OWNER: ${{ github.repository_owner }}
|
||||||
|
GIT_REPO: ${{ github.event.repository.name }}
|
||||||
|
GIT_TOKEN: ${{ secrets.ASSISTANT_TOKEN }}
|
||||||
|
MILESTONE: ${{ github.event.milestone.number }}
|
||||||
27
.github/workflows/ticket-refinement.yaml
vendored
Normal file
27
.github/workflows/ticket-refinement.yaml
vendored
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
name: Ticket refinement
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [labeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: node:22
|
||||||
|
steps:
|
||||||
|
- name: Fetch code
|
||||||
|
run: |
|
||||||
|
git clone "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" .
|
||||||
|
git checkout ${{ github.event.repository.default_branch }}
|
||||||
|
|
||||||
|
- name: Refine ticket
|
||||||
|
run: npx -y -p @ztimson/ai-agents@latest refine
|
||||||
|
env:
|
||||||
|
AI_HOST: anthropic
|
||||||
|
AI_MODEL: claude-sonnet-4-5
|
||||||
|
AI_TOKEN: ${{ secrets.ANTHROPIC_TOKEN }}
|
||||||
|
GIT_HOST: ${{ github.server_url }}
|
||||||
|
GIT_OWNER: ${{ github.repository_owner }}
|
||||||
|
GIT_REPO: ${{ github.event.repository.name }}
|
||||||
|
GIT_TOKEN: ${{ secrets.ASSISTANT_TOKEN }}
|
||||||
|
TICKET: ${{ github.event.issue.number }}
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
image: node:16
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
- test
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
npm:
|
|
||||||
stage: build
|
|
||||||
cache:
|
|
||||||
- key:
|
|
||||||
files:
|
|
||||||
- package-lock.json
|
|
||||||
paths:
|
|
||||||
- node_modules
|
|
||||||
policy: pull-push
|
|
||||||
- key: $CI_PIPELINE_ID
|
|
||||||
paths:
|
|
||||||
- dist
|
|
||||||
policy: push
|
|
||||||
script:
|
|
||||||
- npm install
|
|
||||||
- npm run build
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- dist
|
|
||||||
expire_in: 1 week
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_BRANCH
|
|
||||||
|
|
||||||
audit:
|
|
||||||
stage: test
|
|
||||||
cache:
|
|
||||||
- key:
|
|
||||||
files:
|
|
||||||
- package-lock.json
|
|
||||||
paths:
|
|
||||||
- node_modules
|
|
||||||
policy: pull
|
|
||||||
script:
|
|
||||||
- echo "vulnerabilities_high $(npm audit | grep -oE '[0-9]+ high' | grep -oE '[0-9]+' || echo 0)" > metrics.txt
|
|
||||||
- echo "vulnerabilities_medium $(npm audit | grep -oE '[0-9]+ moderate' | grep -oE '[0-9]+' || echo 0)" >> metrics.txt
|
|
||||||
- echo "vulnerabilities_low $(npm audit | grep -oE '[0-9]+ low' | grep -oE '[0-9]+' || echo 0)" >> metrics.txt
|
|
||||||
artifacts:
|
|
||||||
reports:
|
|
||||||
metrics: metrics.txt
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_BRANCH
|
|
||||||
|
|
||||||
registry:
|
|
||||||
stage: deploy
|
|
||||||
image: docker
|
|
||||||
cache:
|
|
||||||
- key: $CI_PIPELINE_ID
|
|
||||||
paths:
|
|
||||||
- dist
|
|
||||||
policy: pull
|
|
||||||
before_script:
|
|
||||||
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
|
|
||||||
script:
|
|
||||||
- TAG=$([ "$CI_COMMIT_BRANCH" = "$CI_DEFAULT_BRANCH" ] && echo "latest" || echo "$CI_COMMIT_BRANCH" | sed -E "s/[_/]/-/g")
|
|
||||||
- docker build --no-cache -t "$CI_REGISTRY_IMAGE:$TAG" .
|
|
||||||
- docker push "$CI_REGISTRY_IMAGE:$TAG"
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_BRANCH
|
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
tag:
|
|
||||||
stage: deploy
|
|
||||||
image:
|
|
||||||
name: alpine/git
|
|
||||||
entrypoint: [ "" ]
|
|
||||||
cache: [ ]
|
|
||||||
before_script:
|
|
||||||
- git remote set-url origin https://ReleaseBot:$DEPLOY_TOKEN@gitlab.zakscode.com/$CI_PROJECT_PATH.git
|
|
||||||
script:
|
|
||||||
- VERSION=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')
|
|
||||||
- git tag -f $VERSION $CI_COMMIT_SHA
|
|
||||||
- git push -f origin $VERSION
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
|
||||||
allow_failure: true
|
|
||||||
1
CODEOWNERS
Normal file
1
CODEOWNERS
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* @ztimson
|
||||||
29
Dockerfile
29
Dockerfile
@@ -1,28 +1,3 @@
|
|||||||
FROM node:16 as build
|
FROM git.zakscode.com/momentum/momentum:latest
|
||||||
|
|
||||||
# Variables
|
COPY public /app/server/public
|
||||||
ARG NODE_ENV=prod
|
|
||||||
ARG NODE_OPTIONS="--max_old_space_size=4096"
|
|
||||||
ENV NG_CLI_ANALYTICS=ci \
|
|
||||||
NODE_ENV=${NODE_ENV} \
|
|
||||||
NODE_OPTIONS=${NODE_OPTIONS}
|
|
||||||
|
|
||||||
# Setup
|
|
||||||
RUN npm config set unsafe-perm true && \
|
|
||||||
mkdir /app
|
|
||||||
WORKDIR /app
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
# Install
|
|
||||||
RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi
|
|
||||||
|
|
||||||
# Build
|
|
||||||
RUN BUILD_MODE=$([ "$NODE_ENV" = "prod" ] && echo "dynmaic-prod" || echo "dynamic") && \
|
|
||||||
if [ ! -d "dist" ]; then npm run "build:$BUILD_MODE"; fi
|
|
||||||
|
|
||||||
# Use Nginx to serve
|
|
||||||
FROM nginx:1.20-alpine
|
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
|
||||||
COPY docker/robots.txt /usr/share/nginx/html/robots.txt
|
|
||||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
|
||||||
EXPOSE 80
|
|
||||||
|
|||||||
11
LICENSE
Normal file
11
LICENSE
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Copyright (c) 2023 Zakary Timson
|
||||||
|
|
||||||
|
All Rights Reserved.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
136
README.md
136
README.md
@@ -1,46 +1,90 @@
|
|||||||
# 291st JTF
|
<!-- Header -->
|
||||||
[Clan page](https://291st.ca) for the 291st Joint Task Force
|
<div id="top" align="center">
|
||||||
|
<br />
|
||||||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.2.
|
|
||||||
|
<!-- Logo -->
|
||||||
## Table of Contents
|
<img src="./public/assets/img/logo.png" alt="Logo" width="200" height="200">
|
||||||
[[_TOC_]]
|
|
||||||
|
|
||||||
## Prerequisites
|
<!-- Title -->
|
||||||
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
|
### 291st Joint Task Force
|
||||||
- [NodeJS 16](https://nodejs.org/en/)
|
|
||||||
- _[Docker](https://docs.docker.com/install/) (Optional)_
|
<!-- Description -->
|
||||||
|
Clan website for the _291st Joint Task Force_
|
||||||
## Setup
|
|
||||||
The project can either be run using NPM or Docker. NPM is recommended for development.
|
<!-- Repo badges -->
|
||||||
<details>
|
[](https://git.zakscode.com/ztimson/291st/tags)
|
||||||
<summary>NPM</summary>
|
[](https://git.zakscode.com/ztimson/291st/pulls)
|
||||||
|
[](https://git.zakscode.com/ztimson/291st/issues)
|
||||||
1. Install the dependencies: `npm install`
|
|
||||||
2. Start the Angular server: `npm run start`
|
<!-- Links -->
|
||||||
</details>
|
|
||||||
|
---
|
||||||
<details>
|
<div>
|
||||||
<summary>Docker</summary>
|
<a href="https://git.zakscode.com/ztimson/291st/releases" target="_blank">Release Notes</a>
|
||||||
|
• <a href="https://git.zakscode.com/ztimson/291st/issues/new?template=.github%2fissue_template%2fbug.md" target="_blank">Report a Bug</a>
|
||||||
1. Build the docker image: `docker build -t 291st:<TAG> .`
|
• <a href="https://git.zakscode.com/ztimson/291st/issues/new?template=.github%2fissue_template%2fenhancement.md" target="_blank">Request a Feature</a>
|
||||||
2. Start the new image: `docker run -p 4200:80 291st:<TAG>`
|
</div>
|
||||||
|
|
||||||
</details>
|
---
|
||||||
|
</div>
|
||||||
The website should now be accessible on [http://localhost:4200](http://localhost:4200)
|
|
||||||
|
## Table of Contents
|
||||||
## Cheatsheet
|
- [291st](#top)
|
||||||
```bash
|
- [About](#about)
|
||||||
# Start Angular server
|
- [Demo](https://291st.ca)
|
||||||
npm run start
|
- [Built With](#built-with)
|
||||||
|
- [Setup](#setup)
|
||||||
# Build production
|
- [Production](#production)
|
||||||
npm run build:prod
|
- [Development](#development)
|
||||||
|
- [License](#license)
|
||||||
# Build docker image
|
|
||||||
docker build -t 291st:<TAG>
|
## About
|
||||||
|
|
||||||
# Run docker image
|
This website was created for the _291st Joint Task Force_ to act as a simple landing page for their domain.
|
||||||
docker run -p 4200:80 291st:<TAG>
|
|
||||||
```
|
### Demo
|
||||||
|
Website: https://291st.ca
|
||||||
|
|
||||||
|
### Built With
|
||||||
|
[](https://docker.com/)
|
||||||
|
[](https://momentum.zakscode.com)
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<h3 id="production" style="display: inline">
|
||||||
|
Production
|
||||||
|
</h3>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
#### Prerequisites
|
||||||
|
- [Docker](https://docs.docker.com/install/)
|
||||||
|
|
||||||
|
#### Instructions
|
||||||
|
1. Run the docker image: `docker run -p 80:80 git.zakscode.com/ztimson/291st:latest`
|
||||||
|
2. Open [http://localhost](http://localhost)
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>
|
||||||
|
<h3 id="development" style="display: inline">
|
||||||
|
Development
|
||||||
|
</h3>
|
||||||
|
</summary>
|
||||||
|
|
||||||
|
#### Prerequisites
|
||||||
|
- [Node.js](https://nodejs.org/en/download)
|
||||||
|
|
||||||
|
#### Instructions
|
||||||
|
1. Install the dependencies: `npm install`
|
||||||
|
2. Start the Angular server: `npm run start`
|
||||||
|
3. Open [http://localhost:4200](http://localhost:4200)
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
## License
|
||||||
|
Copyright © 2023 Zakary Timson | All Rights Reserved
|
||||||
|
|
||||||
|
See the [license](./LICENSE) for more information.
|
||||||
|
|||||||
91
angular.json
91
angular.json
@@ -1,91 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
||||||
"version": 1,
|
|
||||||
"newProjectRoot": "projects",
|
|
||||||
"projects": {
|
|
||||||
"291st": {
|
|
||||||
"projectType": "application",
|
|
||||||
"schematics": {
|
|
||||||
"@schematics/angular:component": {
|
|
||||||
"style": "scss"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "",
|
|
||||||
"sourceRoot": "src",
|
|
||||||
"prefix": "app",
|
|
||||||
"architect": {
|
|
||||||
"build": {
|
|
||||||
"builder": "@angular-devkit/build-angular:browser",
|
|
||||||
"options": {
|
|
||||||
"outputPath": "dist",
|
|
||||||
"index": "src/index.html",
|
|
||||||
"main": "src/main.ts",
|
|
||||||
"polyfills": "src/polyfills.ts",
|
|
||||||
"tsConfig": "tsconfig.app.json",
|
|
||||||
"inlineStyleLanguage": "scss",
|
|
||||||
"assets": [
|
|
||||||
"src/assets"
|
|
||||||
],
|
|
||||||
"styles": [
|
|
||||||
"src/styles.scss"
|
|
||||||
],
|
|
||||||
"scripts": [ ]
|
|
||||||
},
|
|
||||||
"configurations": {
|
|
||||||
"production": {
|
|
||||||
"budgets": [
|
|
||||||
{
|
|
||||||
"type": "initial",
|
|
||||||
"maximumWarning": "500kb",
|
|
||||||
"maximumError": "1mb"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "anyComponentStyle",
|
|
||||||
"maximumWarning": "2kb",
|
|
||||||
"maximumError": "4kb"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"fileReplacements": [
|
|
||||||
{
|
|
||||||
"replace": "src/environments/environment.ts",
|
|
||||||
"with": "src/environments/environment.prod.ts"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outputHashing": "all"
|
|
||||||
},
|
|
||||||
"development": {
|
|
||||||
"buildOptimizer": false,
|
|
||||||
"optimization": false,
|
|
||||||
"vendorChunk": true,
|
|
||||||
"extractLicenses": false,
|
|
||||||
"sourceMap": true,
|
|
||||||
"namedChunks": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultConfiguration": "production"
|
|
||||||
},
|
|
||||||
"serve": {
|
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
|
||||||
"configurations": {
|
|
||||||
"production": {
|
|
||||||
"browserTarget": "291st:build:production"
|
|
||||||
},
|
|
||||||
"development": {
|
|
||||||
"browserTarget": "291st:build:development"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"defaultConfiguration": "development"
|
|
||||||
},
|
|
||||||
"extract-i18n": {
|
|
||||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
|
||||||
"options": {
|
|
||||||
"browserTarget": "291st:build"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cli": {
|
|
||||||
"analytics": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
worker_processes auto;
|
|
||||||
pid /var/run/nginx.pid;
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
include mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
gzip on;
|
|
||||||
gzip_proxied any;
|
|
||||||
gzip_types text/plain text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript application/json application/x-font-woff;
|
|
||||||
gzip_vary on;
|
|
||||||
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
|
|
||||||
|
|
||||||
sendfile off;
|
|
||||||
keepalive_timeout 65;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
index index.html;
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
autoindex off;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri$args $uri$args/ /index.html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
User-Agent: *
|
|
||||||
Allow: /
|
|
||||||
20566
package-lock.json
generated
20566
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
44
package.json
44
package.json
@@ -1,44 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "291st",
|
|
||||||
"version": "0.0.0",
|
|
||||||
"scripts": {
|
|
||||||
"ng": "ng",
|
|
||||||
"start": "ng serve",
|
|
||||||
"build": "npm run build:dev",
|
|
||||||
"build:dev": "ng build --configuration development",
|
|
||||||
"build:prod": "ng build --configuration production",
|
|
||||||
"watch": "ng build --watch --configuration development"
|
|
||||||
},
|
|
||||||
"private": true,
|
|
||||||
"dependencies": {
|
|
||||||
"@angular/animations": "^14.2.0",
|
|
||||||
"@angular/cdk": "^14.2.2",
|
|
||||||
"@angular/common": "^14.2.0",
|
|
||||||
"@angular/compiler": "^14.2.0",
|
|
||||||
"@angular/core": "^14.2.0",
|
|
||||||
"@angular/forms": "^14.2.0",
|
|
||||||
"@angular/material": "^14.2.2",
|
|
||||||
"@angular/platform-browser": "^14.2.0",
|
|
||||||
"@angular/platform-browser-dynamic": "^14.2.0",
|
|
||||||
"@angular/router": "^14.2.0",
|
|
||||||
"bootstrap": "^5.2.1",
|
|
||||||
"jquery": "^3.6.1",
|
|
||||||
"rxjs": "~7.5.0",
|
|
||||||
"tslib": "^2.3.0",
|
|
||||||
"webstorage-decorators": "^4.2.0",
|
|
||||||
"zone.js": "~0.11.4"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"@angular-devkit/build-angular": "^14.2.2",
|
|
||||||
"@angular/cli": "~14.2.2",
|
|
||||||
"@angular/compiler-cli": "^14.2.0",
|
|
||||||
"@types/jasmine": "~4.0.0",
|
|
||||||
"jasmine-core": "~4.3.0",
|
|
||||||
"karma": "~6.4.0",
|
|
||||||
"karma-chrome-launcher": "~3.1.0",
|
|
||||||
"karma-coverage": "~2.2.0",
|
|
||||||
"karma-jasmine": "~5.1.0",
|
|
||||||
"karma-jasmine-html-reporter": "~2.0.0",
|
|
||||||
"typescript": "~4.7.2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
BIN
public/assets/img/header.png
Normal file
BIN
public/assets/img/header.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
BIN
public/assets/img/helicopter.gif
Normal file
BIN
public/assets/img/helicopter.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.0 MiB |
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
564
public/index.html
Normal file
564
public/index.html
Normal file
@@ -0,0 +1,564 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<meta name="description" content="291st Joint Task Force">
|
||||||
|
<meta name="author" content="Zak Timson">
|
||||||
|
<title>291st JTF</title>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Saira+Stencil+One&family=Roboto:wght@300;400;500&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
||||||
|
<script src="login.mjs" type="module" defer></script>
|
||||||
|
<style>
|
||||||
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--red: #b10000;
|
||||||
|
--red-hover: #c00;
|
||||||
|
--dark: #202225;
|
||||||
|
--black: #000;
|
||||||
|
--max-w: 1100px;
|
||||||
|
--theme-primary: var(--red);
|
||||||
|
--theme-primary-contrast: white;
|
||||||
|
--theme-accent: var(--red);
|
||||||
|
--theme-accent-contrast: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
html, body {
|
||||||
|
background: var(--black);
|
||||||
|
color: #fff;
|
||||||
|
font-family: Roboto, sans-serif;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stencil { font-family: 'Saira Stencil One', sans-serif; }
|
||||||
|
|
||||||
|
/* ── NAV ── */
|
||||||
|
nav {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 100;
|
||||||
|
background: var(--dark);
|
||||||
|
border-bottom: 2px solid var(--red);
|
||||||
|
}
|
||||||
|
|
||||||
|
nav .inner {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.25rem;
|
||||||
|
padding: 0 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
color: #aaa;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 0.75rem 0.75rem;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
border-bottom: 3px solid transparent;
|
||||||
|
transition: color 0.2s, border-color 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a:hover, nav a.active {
|
||||||
|
color: #fff;
|
||||||
|
border-bottom-color: var(--red);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── SHARED LAYOUT ── */
|
||||||
|
.inner {
|
||||||
|
max-width: var(--max-w);
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-wrap {
|
||||||
|
padding: 4rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
|
padding: 4rem 2rem;
|
||||||
|
max-width: var(--max-w);
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
section h2 { font-size: 2rem; margin-bottom: 0.5rem; }
|
||||||
|
|
||||||
|
.section-divider {
|
||||||
|
width: 60px;
|
||||||
|
height: 3px;
|
||||||
|
background: var(--red);
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── ABOUT ── */
|
||||||
|
#about p {
|
||||||
|
color: #ccc;
|
||||||
|
line-height: 1.8;
|
||||||
|
max-width: 720px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stats {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
margin-top: 2rem;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat {
|
||||||
|
background: var(--dark);
|
||||||
|
border-left: 3px solid var(--red);
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
min-width: 140px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat .num {
|
||||||
|
font-size: 2rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--red);
|
||||||
|
}
|
||||||
|
|
||||||
|
.stat .label {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: #aaa;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── MISSION SET ── */
|
||||||
|
#mission-set { background: #0a0a0a; }
|
||||||
|
|
||||||
|
.services-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
|
.services-grid { grid-template-columns: repeat(2, 1fr); }
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.services-grid { grid-template-columns: 1fr; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-card {
|
||||||
|
background: var(--dark);
|
||||||
|
border-top: 3px solid transparent;
|
||||||
|
padding: 1.25rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 1rem;
|
||||||
|
transition: border-color 0.2s, transform 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-card:hover {
|
||||||
|
border-top-color: var(--red);
|
||||||
|
transform: translateY(-3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-card .icon {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-card .text {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.service-card .title { font-size: 1rem; font-weight: 500; margin-bottom: 0.25rem; }
|
||||||
|
.service-card .desc { font-size: 0.82rem; color: #888; line-height: 1.5; }
|
||||||
|
|
||||||
|
/* ── OPERATIONS ── */
|
||||||
|
.ops-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.op-item {
|
||||||
|
display: flex;
|
||||||
|
gap: 1.5rem;
|
||||||
|
align-items: flex-start;
|
||||||
|
background: var(--dark);
|
||||||
|
padding: 1.25rem 1.5rem;
|
||||||
|
border-left: 4px solid var(--red);
|
||||||
|
}
|
||||||
|
|
||||||
|
.op-item.upcoming { border-left-color: #4caf50; }
|
||||||
|
|
||||||
|
.op-item .op-date {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.2rem;
|
||||||
|
font-size: 0.75rem;
|
||||||
|
color: #888;
|
||||||
|
white-space: nowrap;
|
||||||
|
padding-top: 0.2rem;
|
||||||
|
min-width: 110px;
|
||||||
|
font-family: 'Share Tech Mono', monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.op-item .op-date .op-time {
|
||||||
|
color: var(--red);
|
||||||
|
font-size: 0.7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.op-item .op-title { font-weight: 500; margin-bottom: 0.25rem; }
|
||||||
|
.op-item .op-desc { font-size: 0.85rem; color: #aaa; }
|
||||||
|
|
||||||
|
.badge {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0.15rem 0.6rem;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
border-radius: 2px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge-upcoming { background: #1a3a1a; color: #4caf50; }
|
||||||
|
.badge-completed { background: #1a1a2e; color: #888; }
|
||||||
|
|
||||||
|
/* ── DISCORD ── */
|
||||||
|
#discord { background: #050505; }
|
||||||
|
|
||||||
|
.discord-inner {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 2rem;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) { .discord-inner { grid-template-columns: 1fr; } }
|
||||||
|
|
||||||
|
.discord-inner iframe { width: 100%; min-height: 420px; border: none; }
|
||||||
|
|
||||||
|
.discord-info p {
|
||||||
|
color: #aaa;
|
||||||
|
line-height: 1.7;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0.75rem 1.75rem;
|
||||||
|
background: var(--red);
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
transition: background 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover { background: var(--red-hover); }
|
||||||
|
|
||||||
|
/* ── LOCATION ── */
|
||||||
|
#location { background: #080808; border-top: 1px solid #111; }
|
||||||
|
|
||||||
|
.location-inner {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 2fr;
|
||||||
|
gap: 2rem;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) { .location-inner { grid-template-columns: 1fr; } }
|
||||||
|
|
||||||
|
.location-info p {
|
||||||
|
color: #aaa;
|
||||||
|
line-height: 1.7;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.location-info .detail {
|
||||||
|
font-family: 'Share Tech Mono', monospace;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: #555;
|
||||||
|
margin-top: 1rem;
|
||||||
|
line-height: 1.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#map-wrap {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
aspect-ratio: 16/9;
|
||||||
|
overflow: hidden;
|
||||||
|
border: 1px solid #1a1a1a;
|
||||||
|
}
|
||||||
|
|
||||||
|
#map-wrap iframe {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: none;
|
||||||
|
filter: grayscale(1) invert(1) brightness(0.8) contrast(1.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-pin {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%; left: 50%;
|
||||||
|
transform: translate(-50%, -100%);
|
||||||
|
z-index: 2;
|
||||||
|
pointer-events: none;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-pin .pin-dot {
|
||||||
|
width: 14px; height: 14px;
|
||||||
|
background: var(--red);
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: 0 0 0 3px rgba(177,0,0,0.3);
|
||||||
|
animation: pulse 2s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-pin .pin-line { width: 2px; height: 20px; background: var(--red); }
|
||||||
|
|
||||||
|
.map-pin .pin-label {
|
||||||
|
background: var(--red);
|
||||||
|
color: #fff;
|
||||||
|
font-size: 0.65rem;
|
||||||
|
font-family: 'Share Tech Mono', monospace;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
padding: 0.2rem 0.5rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
0%, 100% { box-shadow: 0 0 0 3px rgba(177,0,0,0.3); }
|
||||||
|
50% { box-shadow: 0 0 0 8px rgba(177,0,0,0.1); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── FOOTER ── */
|
||||||
|
footer {
|
||||||
|
background: var(--dark);
|
||||||
|
border-top: 2px solid #111;
|
||||||
|
text-align: center;
|
||||||
|
padding: 1.5rem;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer a, footer a:visited { color: var(--red); text-decoration: none; }
|
||||||
|
footer a:hover { color: var(--red-hover); }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<jtf-login></jtf-login>
|
||||||
|
|
||||||
|
<nav id="main-nav">
|
||||||
|
<div class="inner">
|
||||||
|
<a href="#about">About</a>
|
||||||
|
<a href="#mission-set">Mission Set</a>
|
||||||
|
<a href="#operations">Operations</a>
|
||||||
|
<a href="#discord">Discord</a>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- ABOUT -->
|
||||||
|
<section id="about">
|
||||||
|
<h2 class="stencil">About</h2>
|
||||||
|
<div class="section-divider"></div>
|
||||||
|
<p>
|
||||||
|
The 291st Joint Task Force is a casual group of gamers focused on tactical & strategical cooperative play.
|
||||||
|
We operate across multiple titles and timezones We run weekly operations and "book clubs" to enjoy singplayer games together.
|
||||||
|
If youre looking for friends to enjoy games with on a regular baisis, you came to the right place. We're recruting.
|
||||||
|
</p>
|
||||||
|
<div class="stats">
|
||||||
|
<div class="stat"><div class="num">291st</div><div class="label">Unit</div></div>
|
||||||
|
<div class="stat"><div class="num">15+</div><div class="label">Members</div></div>
|
||||||
|
<div class="stat"><div class="num">2015</div><div class="label">Founded</div></div>
|
||||||
|
<div class="stat"><div class="num">1,000+</div><div class="label">Missions</div></div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- MISSION SET -->
|
||||||
|
<div id="mission-set" class="section-wrap">
|
||||||
|
<div class="inner">
|
||||||
|
<h2 class="stencil">Mission Set</h2>
|
||||||
|
<div class="section-divider"></div>
|
||||||
|
<div class="services-grid">
|
||||||
|
<div class="service-card">
|
||||||
|
<div class="icon">🎮</div>
|
||||||
|
<div class="text">
|
||||||
|
<div class="title">Wide Mission Set</div>
|
||||||
|
<div class="desc">Solo, Shooters, Strategy and MMO's</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="service-card">
|
||||||
|
<div class="icon">📅</div>
|
||||||
|
<div class="text">
|
||||||
|
<div class="title">Weekly Operations</div>
|
||||||
|
<div class="desc">Maintain high readiness at all times.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="service-card">
|
||||||
|
<div class="icon">🖥️</div>
|
||||||
|
<div class="text">
|
||||||
|
<div class="title">24/7 Servers</div>
|
||||||
|
<div class="desc">Requisition servers for any game.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="service-card">
|
||||||
|
<div class="icon">🔒</div>
|
||||||
|
<div class="text">
|
||||||
|
<div class="title">VPN Access</div>
|
||||||
|
<div class="desc">Private VPN access for members.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="service-card">
|
||||||
|
<div class="icon">🎬</div>
|
||||||
|
<div class="text">
|
||||||
|
<div class="title">Private Media Server</div>
|
||||||
|
<div class="desc">REDACTED</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="service-card">
|
||||||
|
<div class="icon">🌎</div>
|
||||||
|
<div class="text">
|
||||||
|
<div class="title">North American</div>
|
||||||
|
<div class="desc">EDT timezone — All regions welcome</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- OPERATIONS -->
|
||||||
|
<section id="operations">
|
||||||
|
<h2 class="stencil">Operations</h2>
|
||||||
|
<div class="section-divider"></div>
|
||||||
|
<div class="ops-list" id="ops-list"></div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- DISCORD -->
|
||||||
|
<div id="discord" class="section-wrap">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="discord-inner">
|
||||||
|
<div class="discord-info">
|
||||||
|
<h2 class="stencil">Join Us</h2>
|
||||||
|
<div class="section-divider"></div>
|
||||||
|
<p>
|
||||||
|
Our Discord is the nerve centre of the 291st. Briefings, op schedules, voice comms,
|
||||||
|
and unit announcements all live here. Active members are expected to stay connected.
|
||||||
|
</p>
|
||||||
|
<a class="btn" href="https://discord.gg/your-invite" target="_blank">Join Discord</a>
|
||||||
|
</div>
|
||||||
|
<iframe
|
||||||
|
src="https://discordapp.com/widget?id=399625240927404033&theme=dark"
|
||||||
|
allowtransparency="true"
|
||||||
|
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts">
|
||||||
|
</iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- LOCATION -->
|
||||||
|
<div id="location" class="section-wrap">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="location-inner">
|
||||||
|
<div class="location-info">
|
||||||
|
<h2 class="stencil">Location</h2>
|
||||||
|
<div class="section-divider"></div>
|
||||||
|
<p>Based out of Ontario, Canada. Operating across North America on Eastern time.</p>
|
||||||
|
<div class="detail">
|
||||||
|
REGION: North America<br>
|
||||||
|
PROVINCE: Ontario, CA<br>
|
||||||
|
TIMEZONE: EDT / UTC-4<br>
|
||||||
|
OP TIME: Sun 14:30–18:30
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="map-wrap">
|
||||||
|
<iframe
|
||||||
|
src="https://www.openstreetmap.org/export/embed.html?bbox=-130.0%2C25.0%2C-55.0%2C55.0&layer=mapnik&marker=43.6532%2C-79.3832"
|
||||||
|
style="pointer-events: none;"
|
||||||
|
loading="lazy">
|
||||||
|
</iframe>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- FOOTER -->
|
||||||
|
<footer>
|
||||||
|
<p>Copyright © 291st JTF 2025 | All Rights Reserved<br>
|
||||||
|
Created by <a href="https://zakscode.com" target="_blank">Zak Timson</a> | Built with <a href="https://momentum.zakscode.com" target="_blank">Momentum</a></p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<script type="module">
|
||||||
|
import {Momentum} from 'https://291st.com/momentum.mjs';
|
||||||
|
const momentum = window.momentum = new Momentum('https://291st.com', {app: 'Website'});
|
||||||
|
const session = momentum.auth.readSession();
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// ── DYNAMIC OPS (newest first) ──
|
||||||
|
function getSundayOps() {
|
||||||
|
const now = new Date();
|
||||||
|
const day = now.getDay();
|
||||||
|
|
||||||
|
const lastSunday = new Date(now);
|
||||||
|
lastSunday.setDate(now.getDate() - day);
|
||||||
|
lastSunday.setHours(14, 30, 0, 0);
|
||||||
|
|
||||||
|
const todayEnd = new Date(now);
|
||||||
|
todayEnd.setHours(18, 30, 0, 0);
|
||||||
|
const upcomingDate = (day === 0 && now < todayEnd) ? lastSunday : new Date(lastSunday);
|
||||||
|
if (!(day === 0 && now < todayEnd)) upcomingDate.setDate(lastSunday.getDate() + 7);
|
||||||
|
|
||||||
|
const ops = [
|
||||||
|
{ date: upcomingDate, upcoming: true },
|
||||||
|
];
|
||||||
|
for (let i = 1; i <= 2; i++) {
|
||||||
|
const d = new Date(upcomingDate);
|
||||||
|
d.setDate(upcomingDate.getDate() - 7 * i);
|
||||||
|
ops.push({ date: d, upcoming: false });
|
||||||
|
}
|
||||||
|
return ops;
|
||||||
|
}
|
||||||
|
|
||||||
|
function fmtDate(d) {
|
||||||
|
return d.toLocaleDateString('en-CA', { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' });
|
||||||
|
}
|
||||||
|
|
||||||
|
const list = document.getElementById('ops-list');
|
||||||
|
getSundayOps().forEach(op => {
|
||||||
|
const item = document.createElement('div');
|
||||||
|
item.className = 'op-item' + (op.upcoming ? ' upcoming' : '');
|
||||||
|
item.innerHTML = `
|
||||||
|
<div class="op-date">
|
||||||
|
<span>${fmtDate(op.date)}</span>
|
||||||
|
<span class="op-time">14:30 – 18:30 EDT</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<div class="op-title">
|
||||||
|
Weekly Operation — Sunday Afternoon
|
||||||
|
${op.upcoming ? `<span class="badge badge-upcoming">Upcoming</span>` : ''}
|
||||||
|
</div>
|
||||||
|
<div class="op-desc">${op.upcoming ? 'All squads report in, game TBD' : 'Operation Complete'}</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
list.appendChild(item);
|
||||||
|
});
|
||||||
|
|
||||||
|
// ── NAV HIGHLIGHT ──
|
||||||
|
const navLinks = document.querySelectorAll('nav a');
|
||||||
|
const observer = new IntersectionObserver(entries => {
|
||||||
|
entries.forEach(e => {
|
||||||
|
if (e.isIntersecting)
|
||||||
|
navLinks.forEach(a => a.classList.toggle('active', a.getAttribute('href') === '#' + e.target.id));
|
||||||
|
});
|
||||||
|
}, { threshold: 0.4 });
|
||||||
|
document.querySelectorAll('[id]').forEach(s => observer.observe(s));
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
311
public/login.mjs
Normal file
311
public/login.mjs
Normal file
@@ -0,0 +1,311 @@
|
|||||||
|
class JTFLogin extends HTMLElement {
|
||||||
|
connectedCallback() {
|
||||||
|
this.attachShadow({ mode: 'open' });
|
||||||
|
this.shadowRoot.innerHTML = `
|
||||||
|
<style>
|
||||||
|
:host {
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
height: 100vh;
|
||||||
|
min-height: 500px;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
background: radial-gradient(ellipse at center, #010d1a 0%, #000 100%);
|
||||||
|
font-family: 'Share Tech Mono', monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── BOX ── */
|
||||||
|
.box {
|
||||||
|
position: relative;
|
||||||
|
z-index: 3;
|
||||||
|
width: min(420px, 90vw);
|
||||||
|
background: rgba(0, 8, 20, 0.92);
|
||||||
|
border: 1px solid rgba(0,180,255,0.25);
|
||||||
|
padding: 2.5rem;
|
||||||
|
box-shadow:
|
||||||
|
0 0 60px rgba(0,180,255,0.05),
|
||||||
|
inset 0 0 40px rgba(0,0,0,0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.box::before, .box::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0; right: 0;
|
||||||
|
height: 1px;
|
||||||
|
}
|
||||||
|
.box::before { top: 6px; background: linear-gradient(90deg, transparent, rgba(0,180,255,0.3), transparent); }
|
||||||
|
.box::after { bottom: 6px; background: linear-gradient(90deg, transparent, rgba(0,180,255,0.3), transparent); }
|
||||||
|
|
||||||
|
.corner {
|
||||||
|
position: absolute;
|
||||||
|
width: 12px; height: 12px;
|
||||||
|
border-color: rgba(0,180,255,0.6);
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
|
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
|
||||||
|
.corner-tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
|
||||||
|
.corner-bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
|
||||||
|
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
|
||||||
|
|
||||||
|
/* ── HEADER ── */
|
||||||
|
.header { text-align: center; margin-bottom: 2rem; }
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
font-size: 0.65rem;
|
||||||
|
color: rgba(0,180,255,0.5);
|
||||||
|
letter-spacing: 0.25em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-img {
|
||||||
|
height: 120px;
|
||||||
|
width: auto;
|
||||||
|
object-fit: contain;
|
||||||
|
display: block;
|
||||||
|
margin: 0 auto 1rem;
|
||||||
|
filter: drop-shadow(0 0 8px rgba(0,180,255,0.4));
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-family: 'Saira Stencil One', sans-serif;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
color: #aaa;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
margin-bottom: 0.2rem;
|
||||||
|
text-shadow: 0 0 20px rgba(0,180,255,0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.subtitle {
|
||||||
|
font-size: 0.65rem;
|
||||||
|
color: rgba(0,180,255,0.4);
|
||||||
|
letter-spacing: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── FIELDS ── */
|
||||||
|
.field { margin-bottom: 1.25rem; }
|
||||||
|
|
||||||
|
.field label {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 0.65rem;
|
||||||
|
color: rgba(0,180,255,0.4);
|
||||||
|
letter-spacing: 0.2em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field label span { color: rgba(255,255,255,0.15); }
|
||||||
|
|
||||||
|
.field-value {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid rgba(0,180,255,0.15);
|
||||||
|
background: transparent;
|
||||||
|
color: rgba(0,180,255,0.8);
|
||||||
|
font-family: 'Share Tech Mono', monospace;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
min-height: 2rem;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-value.filled {
|
||||||
|
border-bottom-color: rgba(0,180,255,0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-value.locked {
|
||||||
|
color: rgba(0,180,255,0.35);
|
||||||
|
border-bottom-color: rgba(0,180,255,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── STATUS ── */
|
||||||
|
.status {
|
||||||
|
font-size: 0.68rem;
|
||||||
|
color: rgba(0,180,255,0.4);
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
min-height: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status.active { color: rgba(0,180,255,0.8); }
|
||||||
|
.status.success { color: #00ff87; }
|
||||||
|
.status.error { color: #b10000; }
|
||||||
|
|
||||||
|
/* ── BUTTON ── */
|
||||||
|
button {
|
||||||
|
width: 100%;
|
||||||
|
padding: 0.85rem;
|
||||||
|
background: transparent;
|
||||||
|
border: 1px solid rgba(177,0,0,0.6);
|
||||||
|
color: rgba(177,0,0,0.8);
|
||||||
|
font-family: 'Share Tech Mono', monospace;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
letter-spacing: 0.25em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
cursor: default;
|
||||||
|
transition: all 0.4s;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
button::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(177,0,0,0.05), transparent);
|
||||||
|
transform: translateX(-100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
button.flash { animation: btnFlash 0.35s ease-in-out 4; }
|
||||||
|
|
||||||
|
button.proceed {
|
||||||
|
border-color: rgba(0,255,135,0.5);
|
||||||
|
color: #00ff87;
|
||||||
|
cursor: pointer;
|
||||||
|
box-shadow: 0 0 20px rgba(0,255,135,0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
button.proceed::before {
|
||||||
|
animation: shimmer 2s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
button.proceed:hover {
|
||||||
|
background: rgba(0,255,135,0.06);
|
||||||
|
box-shadow: 0 0 30px rgba(0,255,135,0.15);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes btnFlash {
|
||||||
|
0%, 100% { opacity: 1; }
|
||||||
|
50% { opacity: 0.1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes shimmer {
|
||||||
|
0% { transform: translateX(-100%); }
|
||||||
|
100% { transform: translateX(100%); }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ── DIVIDER ── */
|
||||||
|
.divider {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.75rem;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
color: rgba(0,180,255,0.15);
|
||||||
|
font-size: 0.6rem;
|
||||||
|
letter-spacing: 0.2em;
|
||||||
|
}
|
||||||
|
.divider::before, .divider::after {
|
||||||
|
content: '';
|
||||||
|
flex: 1;
|
||||||
|
height: 1px;
|
||||||
|
background: rgba(0,180,255,0.1);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Saira+Stencil+One&family=Share+Tech+Mono&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<div class="corner corner-tl"></div>
|
||||||
|
<div class="corner corner-tr"></div>
|
||||||
|
<div class="corner corner-bl"></div>
|
||||||
|
<div class="corner corner-br"></div>
|
||||||
|
|
||||||
|
<div class="header">
|
||||||
|
<img class="logo-img" src="assets/img/logo.png" alt="291st JTF">
|
||||||
|
<div class="title">291st JTF</div>
|
||||||
|
<div class="subtitle">JOINT TASK FORCE</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="divider">OPERATOR AUTHENTICATION</div>
|
||||||
|
|
||||||
|
<div class="field">
|
||||||
|
<label>Operator ID</label>
|
||||||
|
<div class="field-value" id="f-user"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="field">
|
||||||
|
<label>Access Code</label>
|
||||||
|
<div class="field-value" id="f-pass"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="status" id="status"></div>
|
||||||
|
<button id="btn" disabled>AUTHENTICATE</button>
|
||||||
|
|
||||||
|
<div class="tag">Status: SECURE | Version: 1.0.0</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
|
||||||
|
this._runSequence();
|
||||||
|
}
|
||||||
|
|
||||||
|
_type(el, text, delay) {
|
||||||
|
return new Promise(resolve => {
|
||||||
|
let i = 0;
|
||||||
|
const t = setInterval(() => {
|
||||||
|
el.textContent = text.slice(0, ++i);
|
||||||
|
if (i >= text.length) { clearInterval(t); resolve(); }
|
||||||
|
}, delay);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
_wait(ms) { return new Promise(r => setTimeout(r, ms)); }
|
||||||
|
|
||||||
|
_setStatus(msg, cls = '') {
|
||||||
|
const s = this.shadowRoot.getElementById('status');
|
||||||
|
s.textContent = msg;
|
||||||
|
s.className = 'status ' + cls;
|
||||||
|
}
|
||||||
|
|
||||||
|
async _runSequence() {
|
||||||
|
const root = this.shadowRoot;
|
||||||
|
const fUser = root.getElementById('f-user');
|
||||||
|
const fPass = root.getElementById('f-pass');
|
||||||
|
const btn = root.getElementById('btn');
|
||||||
|
|
||||||
|
await this._wait(700);
|
||||||
|
this._setStatus('> INITIALISING ENCRYPTED CHANNEL...', 'active');
|
||||||
|
|
||||||
|
await this._wait(1200);
|
||||||
|
this._setStatus('> BIOMETRIC HANDSHAKE CONFIRMED', 'active');
|
||||||
|
|
||||||
|
await this._wait(900);
|
||||||
|
this._setStatus('> ENTER CREDENTIALS', 'active');
|
||||||
|
|
||||||
|
await this._wait(600);
|
||||||
|
await this._type(fUser, 'OPERATOR_291', 75);
|
||||||
|
fUser.classList.add('filled');
|
||||||
|
|
||||||
|
await this._wait(300);
|
||||||
|
await this._type(fPass, '● ● ● ● ● ● ● ●', 55);
|
||||||
|
fPass.classList.add('filled');
|
||||||
|
|
||||||
|
await this._wait(400);
|
||||||
|
this._setStatus('> AUTHENTICATING — STANDBY...', 'active');
|
||||||
|
|
||||||
|
await this._wait(300);
|
||||||
|
btn.disabled = false;
|
||||||
|
btn.classList.add('flash');
|
||||||
|
|
||||||
|
await this._wait(1500);
|
||||||
|
btn.classList.remove('flash');
|
||||||
|
|
||||||
|
this._setStatus('> ACCESS GRANTED — IDENTITY VERIFIED ✓', 'success');
|
||||||
|
|
||||||
|
fUser.classList.remove('filled');
|
||||||
|
fPass.classList.remove('filled');
|
||||||
|
fUser.classList.add('locked');
|
||||||
|
fPass.classList.add('locked');
|
||||||
|
|
||||||
|
btn.textContent = 'PROCEED ▶';
|
||||||
|
btn.classList.add('proceed');
|
||||||
|
|
||||||
|
btn.addEventListener('click', () => {
|
||||||
|
document.getElementById('main-nav')?.scrollIntoView({ behavior: 'smooth' });
|
||||||
|
}, { once: true });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
customElements.define('jtf-login', JTFLogin);
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {BrowserModule} from '@angular/platform-browser';
|
|
||||||
import {AppRouting} from './app.routing';
|
|
||||||
import {FooterComponent} from './components/footer/footer.component';
|
|
||||||
import {NavbarComponent} from './components/navbar/navbar.component';
|
|
||||||
import {AppComponent} from './containers/app/app.component';
|
|
||||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
|
||||||
import {MaterialModule} from './material.module';
|
|
||||||
import {HomeComponent} from './views/home/home.component';
|
|
||||||
|
|
||||||
export const APP_COMPONENTS = [
|
|
||||||
AppComponent,
|
|
||||||
HomeComponent,
|
|
||||||
FooterComponent,
|
|
||||||
NavbarComponent
|
|
||||||
]
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: APP_COMPONENTS,
|
|
||||||
imports: [
|
|
||||||
BrowserModule,
|
|
||||||
AppRouting,
|
|
||||||
BrowserAnimationsModule,
|
|
||||||
MaterialModule
|
|
||||||
],
|
|
||||||
providers: [],
|
|
||||||
bootstrap: [AppComponent]
|
|
||||||
})
|
|
||||||
export class AppModule { }
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
|
||||||
import {HomeComponent} from './views/home/home.component';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
|
||||||
{path: '', pathMatch: 'full', component: HomeComponent}
|
|
||||||
];
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: [RouterModule.forRoot(routes)],
|
|
||||||
exports: [RouterModule]
|
|
||||||
})
|
|
||||||
export class AppRouting { }
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
<footer>
|
|
||||||
<div class="py-2 text-center">
|
|
||||||
<p class="copywright m-0">
|
|
||||||
Copyright © 291st JTF 2022 | All Rights Reserved<br>
|
|
||||||
Created by <a href="https://zakscode.com" target="_blank">Zak Timson</a>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
.copywright {
|
|
||||||
a, a:visited { color: #b10000; }
|
|
||||||
a:hover, a:visited:hover { color: #cc0000; }
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import {Component} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-footer',
|
|
||||||
templateUrl: './footer.component.html',
|
|
||||||
styleUrls: ['./footer.component.scss']
|
|
||||||
})
|
|
||||||
export class FooterComponent { }
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<mat-toolbar>
|
|
||||||
<mat-toolbar-row>
|
|
||||||
<div>
|
|
||||||
<a class="navbar-brand d-flex align-items-center" routerLink="/">
|
|
||||||
<div class="px-2">291st Joint Task Force</div>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
<div class="flex-grow-1"></div>
|
|
||||||
<div *ngIf="!hamburger">
|
|
||||||
</div>
|
|
||||||
<button *ngIf="hamburger" mat-icon-button class="mr-3">
|
|
||||||
<mat-icon (click)="hamburgerClick.emit()">menu</mat-icon>
|
|
||||||
</button>
|
|
||||||
</mat-toolbar-row>
|
|
||||||
</mat-toolbar>
|
|
||||||
<div class="navbar-spacing"><!-- Spacing --></div>
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
.navbar-spacing {
|
|
||||||
height: 64px;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
::ng-deep mat-toolbar {
|
|
||||||
background: #000 !important;
|
|
||||||
border-bottom: #fff solid 1px;
|
|
||||||
height: 64px;
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
z-index: 100;
|
|
||||||
|
|
||||||
.mat-toolbar-row {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-brand {
|
|
||||||
color: #fff;
|
|
||||||
//font-weight: lighter;
|
|
||||||
|
|
||||||
&:hover img {
|
|
||||||
filter: brightness(5%) sepia(75) saturate(100) hue-rotate(25deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-button {
|
|
||||||
//color: rgba(255, 255, 255, 0.55);
|
|
||||||
font-weight: normal;
|
|
||||||
padding: 0 8px 0 8px;
|
|
||||||
|
|
||||||
//&:hover {
|
|
||||||
// color: rgba(255, 255, 255, 0.75);
|
|
||||||
//}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
::ng-deep .mat-menu-content {
|
|
||||||
background: #000;
|
|
||||||
border: #fff solid 1px;
|
|
||||||
padding: 0 !important;
|
|
||||||
border-radius: 0.25rem;
|
|
||||||
|
|
||||||
mat-divider {
|
|
||||||
border-color: white;
|
|
||||||
margin-top: 0.2rem;
|
|
||||||
padding-bottom: 0.1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
height: 36px;
|
|
||||||
line-height: 36px;
|
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: rgba(255, 255, 255, 0.15) !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
import {AfterViewInit, Component, EventEmitter, Input, OnDestroy, Output} from '@angular/core';
|
|
||||||
import {ActivatedRoute} from '@angular/router';
|
|
||||||
import {Subscription} from 'rxjs';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-navbar',
|
|
||||||
templateUrl: './navbar.component.html',
|
|
||||||
styleUrls: ['./navbar.component.scss']
|
|
||||||
})
|
|
||||||
export class NavbarComponent implements AfterViewInit, OnDestroy {
|
|
||||||
private sub!: Subscription;
|
|
||||||
|
|
||||||
@Input() hamburger = true;
|
|
||||||
|
|
||||||
@Output() hamburgerClick = new EventEmitter<void>();
|
|
||||||
|
|
||||||
constructor(private route: ActivatedRoute) { }
|
|
||||||
|
|
||||||
ngAfterViewInit() {
|
|
||||||
this.sub = this.route.fragment.subscribe(frag => {
|
|
||||||
if(frag) this.scroll(frag);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
|
||||||
if(this.sub) this.sub.unsubscribe();
|
|
||||||
}
|
|
||||||
|
|
||||||
scroll(id: string) {
|
|
||||||
const el = document.getElementById(id);
|
|
||||||
if(el) el.scrollIntoView({behavior: 'smooth'});
|
|
||||||
else setTimeout(() => this.scroll(id), 500);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<app-navbar [hamburger]="mobile"></app-navbar>
|
|
||||||
<div class="fill app-container">
|
|
||||||
<router-outlet></router-outlet>
|
|
||||||
<app-footer></app-footer>
|
|
||||||
</div>
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
.app-container {
|
|
||||||
overflow-x: hidden;
|
|
||||||
overflow-y: auto;
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
}
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
import {BreakpointObserver} from '@angular/cdk/layout';
|
|
||||||
import { Component } from '@angular/core';
|
|
||||||
import {ActivatedRoute, NavigationEnd, Router} from '@angular/router';
|
|
||||||
import {filter} from 'rxjs';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-root',
|
|
||||||
templateUrl: './app.component.html',
|
|
||||||
styleUrls: ['./app.component.scss']
|
|
||||||
})
|
|
||||||
export class AppComponent {
|
|
||||||
mobile = false;
|
|
||||||
open = false;
|
|
||||||
|
|
||||||
constructor(private router: Router, route: ActivatedRoute, breakpointObserver: BreakpointObserver) {
|
|
||||||
router.events.pipe(filter(event => event instanceof NavigationEnd)).subscribe(() => this.open = false);
|
|
||||||
breakpointObserver.observe(['(max-width: 750px)']).subscribe(result => {
|
|
||||||
this.mobile = result.matches;
|
|
||||||
this.open = !this.mobile;
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
import {NgModule} from '@angular/core';
|
|
||||||
import {MatButtonModule} from '@angular/material/button';
|
|
||||||
import {MatIconModule} from '@angular/material/icon';
|
|
||||||
import {MatToolbarModule} from '@angular/material/toolbar';
|
|
||||||
|
|
||||||
export const MATERIAL_MODULES = [
|
|
||||||
MatButtonModule,
|
|
||||||
MatIconModule,
|
|
||||||
MatToolbarModule
|
|
||||||
];
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: MATERIAL_MODULES,
|
|
||||||
exports: MATERIAL_MODULES,
|
|
||||||
})
|
|
||||||
export class MaterialModule {}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
<section class="fill background d-flex flex-column flex-md-row">
|
|
||||||
<div class="flex-grow-1 p-3" style="flex-basis: 0">
|
|
||||||
<iframe src="https://discordapp.com/widget?id=399625240927404033&theme=dark" width="100%" height="100%" allowtransparency="true" frameborder="0" style="min-height: 500px" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
|
|
||||||
</div>
|
|
||||||
<div class="flex-grow-1 p-3" style="flex-basis: 0">
|
|
||||||
</div>
|
|
||||||
<div class="flex-grow-1 p-3" style="flex-basis: 0">
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
.background {
|
|
||||||
background: url("/assets/img/291st-background.png") no-repeat center center;
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
import {Component} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-home',
|
|
||||||
templateUrl: './home.component.html',
|
|
||||||
styleUrls: ['./home.component.scss']
|
|
||||||
})
|
|
||||||
export class HomeComponent {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
export const environment = {
|
|
||||||
production: true
|
|
||||||
};
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
export const environment = {
|
|
||||||
production: false
|
|
||||||
};
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<!doctype html>
|
|
||||||
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
||||||
<!-- TODO: Description-->
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="Zak Timson">
|
|
||||||
|
|
||||||
<title>291st JTF</title>
|
|
||||||
|
|
||||||
<link href="assets/img/logo.png" rel="icon" type="image/png">
|
|
||||||
<link href="https://use.fontawesome.com/releases/v6.1.1/css/all.css" rel="stylesheet">
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
|
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body class="mat-typography" style="background: #000">
|
|
||||||
<app-root></app-root>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
12
src/main.ts
12
src/main.ts
@@ -1,12 +0,0 @@
|
|||||||
import { enableProdMode } from '@angular/core';
|
|
||||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
||||||
|
|
||||||
import { AppModule } from './app/app.module';
|
|
||||||
import { environment } from './environments/environment';
|
|
||||||
|
|
||||||
if (environment.production) {
|
|
||||||
enableProdMode();
|
|
||||||
}
|
|
||||||
|
|
||||||
platformBrowserDynamic().bootstrapModule(AppModule)
|
|
||||||
.catch(err => console.error(err));
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
/**
|
|
||||||
* This file includes polyfills needed by Angular and is loaded before the app.
|
|
||||||
* You can add your own extra polyfills to this file.
|
|
||||||
*
|
|
||||||
* This file is divided into 2 sections:
|
|
||||||
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
|
|
||||||
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
|
|
||||||
* file.
|
|
||||||
*
|
|
||||||
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
|
|
||||||
* automatically update themselves. This includes recent versions of Safari, Chrome (including
|
|
||||||
* Opera), Edge on the desktop, and iOS and Chrome on mobile.
|
|
||||||
*
|
|
||||||
* Learn more in https://angular.io/guide/browser-support
|
|
||||||
*/
|
|
||||||
|
|
||||||
/***************************************************************************************************
|
|
||||||
* BROWSER POLYFILLS
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* By default, zone.js will patch all possible macroTask and DomEvents
|
|
||||||
* user can disable parts of macroTask/DomEvents patch by setting following flags
|
|
||||||
* because those flags need to be set before `zone.js` being loaded, and webpack
|
|
||||||
* will put import in the top of bundle, so user need to create a separate file
|
|
||||||
* in this directory (for example: zone-flags.ts), and put the following flags
|
|
||||||
* into that file, and then add the following code before importing zone.js.
|
|
||||||
* import './zone-flags';
|
|
||||||
*
|
|
||||||
* The flags allowed in zone-flags.ts are listed here.
|
|
||||||
*
|
|
||||||
* The following flags will work for all browsers.
|
|
||||||
*
|
|
||||||
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
|
|
||||||
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
|
|
||||||
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
|
|
||||||
*
|
|
||||||
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
|
|
||||||
* with the following flag, it will bypass `zone.js` patch for IE/Edge
|
|
||||||
*
|
|
||||||
* (window as any).__Zone_enable_cross_context_check = true;
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/***************************************************************************************************
|
|
||||||
* Zone JS is required by default for Angular itself.
|
|
||||||
*/
|
|
||||||
import 'zone.js'; // Included with Angular CLI.
|
|
||||||
|
|
||||||
|
|
||||||
/***************************************************************************************************
|
|
||||||
* APPLICATION IMPORTS
|
|
||||||
*/
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
@use '@angular/material' as mat;
|
|
||||||
@include mat.core();
|
|
||||||
|
|
||||||
// hue. Available color palettes: https://material.io/design/color/
|
|
||||||
$LegioXXX-primary: mat.define-palette(mat.$red-palette, 900);
|
|
||||||
$LegioXXX-accent: mat.define-palette(mat.$indigo-palette, 900);
|
|
||||||
$LegioXXX-warn: mat.define-palette(mat.$orange-palette, 500);
|
|
||||||
$LegioXXX-theme: mat.define-dark-theme((
|
|
||||||
color: (
|
|
||||||
primary: $LegioXXX-primary,
|
|
||||||
accent: $LegioXXX-accent,
|
|
||||||
warn: $LegioXXX-warn,
|
|
||||||
)
|
|
||||||
));
|
|
||||||
|
|
||||||
@include mat.all-component-themes($LegioXXX-theme);
|
|
||||||
|
|
||||||
@import '~bootstrap/dist/css/bootstrap-utilities.min.css';
|
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background: rgba(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 10px;
|
|
||||||
background: rgba(0, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: rgba(255, 255, 255, 0.6);
|
|
||||||
&:hover { background: rgba(255, 255, 255, 0.8); }
|
|
||||||
}
|
|
||||||
|
|
||||||
html, body {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
background: #000;
|
|
||||||
color: #fff;
|
|
||||||
font-family: Roboto, sans-serif;
|
|
||||||
margin: 0;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
a, a:visited {
|
|
||||||
text-decoration: none;
|
|
||||||
color: rgba(255, 255, 255, 0.6);
|
|
||||||
}
|
|
||||||
a:hover, a:visited:hover { color: #b10000; }
|
|
||||||
|
|
||||||
.fill {
|
|
||||||
height: 0;
|
|
||||||
min-height: calc(100vh - 64px);
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"outDir": "./out-tsc/app",
|
|
||||||
"types": []
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"src/main.ts",
|
|
||||||
"src/polyfills.ts"
|
|
||||||
],
|
|
||||||
"include": [
|
|
||||||
"src/**/*.d.ts"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
/* To learn more about this file see: https://angular.io/config/tsconfig. */
|
|
||||||
{
|
|
||||||
"compileOnSave": false,
|
|
||||||
"compilerOptions": {
|
|
||||||
"baseUrl": "./",
|
|
||||||
"outDir": "./dist/out-tsc",
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"strict": true,
|
|
||||||
"noImplicitOverride": true,
|
|
||||||
"noPropertyAccessFromIndexSignature": true,
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"sourceMap": true,
|
|
||||||
"declaration": false,
|
|
||||||
"downlevelIteration": true,
|
|
||||||
"experimentalDecorators": true,
|
|
||||||
"moduleResolution": "node",
|
|
||||||
"importHelpers": true,
|
|
||||||
"target": "es2020",
|
|
||||||
"module": "es2020",
|
|
||||||
"lib": [
|
|
||||||
"es2020",
|
|
||||||
"dom"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"angularCompilerOptions": {
|
|
||||||
"enableI18nLegacyMessageIdFormat": false,
|
|
||||||
"strictInjectionParameters": true,
|
|
||||||
"strictInputAccessModifiers": true,
|
|
||||||
"strictTemplates": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user