diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index 0ad92b2..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "Ultraviolet-Devel", - "build": { - "dockerfile": "../docker/Dockerfile", - "target": "devel", - "context": "../" - }, - "forwardPorts": [ - 8080 - ], - "workspaceFolder": "/app" - } diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index a73c767..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: "" -labels: "" -assignees: "" ---- - -Issue tracker is **ONLY** used for reporting bugs. New features should be discussed on our Discord server. - - - -## Expected Behavior - - - -## Current Behavior - - - -## Possible Solution - - - -## Steps to Reproduce - - - - -1. -2. -3. -4. - -## Context (Environment) - - - - - - -## Detailed Description - - - -## Possible Implementation - - diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index eb5ff01..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,8 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Community Support - url: https://discord.gg/unblock - about: Please ask and answer questions here. - - name: Heroku, Repl.it, Blocked site issues - url: https://www.youtube.com/watch?v=BLUkgRAy_Vo - about: Do not create issues for these. diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index 09ed032..0000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,70 +0,0 @@ -name: Build and Push to Docker Hub - -on: - push: - branches: [ main ] - pull_request: - branches: [ main ] - schedule: - - cron: "30 12 * * 0" # Run once every Sunday - -env: - REPO: ultraviolet-node - PLATFORMS: linux/amd64,linux/arm64 - -jobs: - build_and_push_docker_images: - name: Push Docker image to Docker Hub - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v3 - - - name: Login to DockerHub - if: github.event_name != 'pull_request' - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERUSERNAME }} - password: ${{ secrets.DOCKERPASSWORD }} - - - name: Build Test Image - uses: redhat-actions/buildah-build@v2 - with: - image: ${{ env.REPO }} - tags: test - containerfiles: | - ./docker/Dockerfile - build-args: | - NPM_BUILD=npm ci --omit=dev --frozen-lockfile - - - name: Test - run: | - podman run --rm -d -p 8080:8080 localhost/${{ env.REPO }}:test - chmod +x ./docker/test.sh - ./docker/test.sh -p 8080 -h 0.0.0.0 -t 15 - - - name: Install qemu - if: github.event_name != 'pull_request' - run: | - sudo apt-get install -y qemu-user-static - - - name: Build Production Images - if: github.event_name != 'pull_request' - id: build-image - uses: redhat-actions/buildah-build@v2 - with: - image: ${{ env.REPO }} - tags: latest ${{ github.sha }} - containerfiles: | - ./docker/Dockerfile - platforms: ${{ env.PLATFORMS }} - build-args: | - NPM_BUILD=npm ci --omit=dev --frozen-lockfile - - - name: Push To Docker Hub - if: github.event_name != 'pull_request' - uses: redhat-actions/push-to-registry@v2 - with: - image: ${{ steps.build-image.outputs.image }} - tags: ${{ steps.build-image.outputs.tags }} - registry: docker.io/${{ secrets.DOCKERUSERNAME }} diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml deleted file mode 100644 index 8232f0c..0000000 --- a/.github/workflows/eslint.yml +++ /dev/null @@ -1,51 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# ESLint is a tool for identifying and reporting on patterns -# found in ECMAScript/JavaScript code. -# More details at https://github.com/eslint/eslint -# and https://eslint.org - -# https://github.com/actions/starter-workflows/blob/main/code-scanning/eslint.yml - -name: ESLint - -on: - push: - branches: ["main"] - pull_request: - branches: ["main"] - schedule: - - cron: "30 12 * * 0" # Run once every Sunday - -jobs: - eslint: - name: Run eslint scanning - runs-on: ubuntu-latest - permissions: - contents: read - security-events: write - actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Install ESLint - run: | - npm install eslint@8.10.0 - npm install @microsoft/eslint-formatter-sarif@2.1.7 - - - name: Run ESLint - run: npx eslint . - --config .eslintrc.json - --ext .js,.jsx,.ts,.tsx - --format @microsoft/eslint-formatter-sarif - --output-file eslint-results.sarif - continue-on-error: true - - - name: Upload analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: eslint-results.sarif - wait-for-processing: true \ No newline at end of file diff --git a/.replit b/.replit deleted file mode 100644 index e803f24..0000000 --- a/.replit +++ /dev/null @@ -1,13 +0,0 @@ -language = "nix" -run = ["npm", "start"] - -[packager] -language = "nodejs-npm" - -[nix] -channel = "stable-22_05" - -[debugger] - -[unitTest] -language = "nodejs" diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 10411a9..0000000 --- a/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM node:18-alpine - -ENV NODE_ENV=production -ARG NPM_BUILD="npm install --omit=dev" -EXPOSE 8080/tcp - -LABEL maintainer="TitaniumNetwork Ultraviolet Team" -LABEL summary="Ultraviolet Proxy Image" -LABEL description="Example application of Ultraviolet which can be deployed in production." - -WORKDIR /app - -COPY ["package.json", "package-lock.json", "./"] -RUN $NPM_BUILD - -COPY . . - -ENTRYPOINT [ "node" ] -CMD ["src/index.js"] diff --git a/README.md b/README.md deleted file mode 100644 index df28454..0000000 --- a/README.md +++ /dev/null @@ -1,18 +0,0 @@ -
