Skip to content

Commit

Permalink
Merge pull request #70 from MercuryWorkshop/main
Browse files Browse the repository at this point in the history
Update Docs Branch
  • Loading branch information
markrosenbaum authored Sep 8, 2023
2 parents 04cb6bc + 48584dc commit 7614e8f
Show file tree
Hide file tree
Showing 33 changed files with 13,252 additions and 350 deletions.
81 changes: 81 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
schedule:
- cron: "21 7 * * 5"

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#TODO(Official Contributors to AnuraOS)
1 change: 1 addition & 0 deletions CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#TODO
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUST_FILES=$(shell find v86/src/rust/ -name '*.rs') \

all: build/bootstrap v86dirty v86 build/nohost-sw.js bundle public/config.json build/cache-load.json

full: all prod rootfs
full: all rootfs

hooks: FORCE
mkdir -p .git/hooks
Expand Down Expand Up @@ -39,7 +39,7 @@ v86: libv86.js build/lib/v86.wasm
cp -r v86/bios public

build/cache-load.json: FORCE
((find apps/ -name node_modules -prune -o -name '*' -type f && cd build/ && find lib/ -name node_modules -prune -o -name '*' -type f && cd ../public && find . -name node_modules -prune -o -name '*' -type f) | jq -Rnc '[inputs]') > build/cache-load.json
(find apps/ -type f && cd build/ && find lib/ -type f && cd ../public/ && find . -type f)| grep -v -e node_modules -e python.app -e "/\." | jq -Rnc '[inputs]' > build/cache-load.json

libv86.js: v86/src/*.js v86/lib/*.js v86/src/browser/*.js
cd v86; make build/libv86.js
Expand All @@ -66,8 +66,9 @@ milestone:
lint:
npx prettier -w --loglevel error .
npx eslint . --fix
prod: all
npx google-closure-compiler --js build/lib/libv86.js build/assets/libs/filer.min.js build/lib/coreapps/ExternalApp.js build/lib/coreapps/x86MgrApp.js build/lib/coreapps/SettingsApp.js build/lib/coreapps/BrowserApp.js build/lib/v86.js build/lib/AliceWM.js build/lib/AliceJS.js build/lib/Taskbar.js build/lib/ContextMenu.js build/lib/api/ContextMenuAPI.js build/lib/Launcher.js build/lib/Bootsplash.js build/lib/oobe/OobeView.js build/lib/oobe/OobeWelcomeStep.js build/lib/oobe/OobeAssetsStep.js build/lib/Utils.js build/lib/Anura.js build/lib/api/Settings.js build/lib/api/NotificationService.js build/lib/Boot.js --js_output_file public/dist.js
# prod: all
# npx google-closure-compiler --js build/lib/libv86.js build/assets/libs/filer.min.js build/lib/coreapps/ExternalApp.js build/lib/coreapps/x86MgrApp.js build/lib/coreapps/SettingsApp.js build/lib/coreapps/BrowserApp.js build/lib/v86.js build/lib/AliceWM.js build/lib/AliceJS.js build/lib/Taskbar.js build/lib/ContextMenu.js build/lib/api/ContextMenuAPI.js build/lib/Launcher.js build/lib/Bootsplash.js build/lib/oobe/OobeView.js build/lib/oobe/OobeWelcomeStep.js build/lib/oobe/OobeAssetsStep.js build/lib/Utils.js build/lib/Anura.js build/lib/api/Settings.js build/lib/api/NotificationService.js build/lib/Boot.js --js_output_file public/dist.js

server: FORCE
cd server; npx ts-node server.ts

Expand Down
1 change: 1 addition & 0 deletions OWNERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#TODO(Lead Devs on each part of the Project)
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=MercuryWorkshop_anuraOS&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=MercuryWorkshop_anuraOS)
[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=MercuryWorkshop_anuraOS&metric=ncloc)](https://sonarcloud.io/summary/new_code?id=MercuryWorkshop_anuraOS)

# AnuraOS

WebOS complete with v86 integration and a minimal yet capable desktop enviroment.
Formerly known as Chimera. Based off of the AliceWM.

### Easy Install(When in a codespace)

- Run `bash codespace-basic-setup.sh`
- Run `bash codespace-basic-setup.sh`

**NOTE**: If you are not in a codespace skip to the regular installation steps.

**NOTE**: This does NOT build RootFS.


### Installation

- Make sure you have `rustup` and run the command: `rustup target add wasm32-unknown-unknown`
Expand Down Expand Up @@ -59,7 +61,11 @@ Will be utilized after the first Build of AnuraOS.

## Documentation

Still being written.
Still being written. (See documentation folder)

## Security

See [SECURITY.md](./SECURITY.md) for reporting instructions.

<sub>
The AnuraOS Team and Mercury Workshop are both not liable to any loss of braincells and maybe even your sanity after working with this product.
Expand Down
2 changes: 2 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=MercuryWorkshop_anuraOS&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=MercuryWorkshop_anuraOS)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=MercuryWorkshop_anuraOS&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=MercuryWorkshop_anuraOS)
# Security Policy

## Supported Versions(Will be added in prod)
Expand Down
4 changes: 2 additions & 2 deletions apps/chideNewNewNew.app/index.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@font-face {
font-family: NerdFonts;
src: url("SymbolsNerdFont-Regular.ttf") format("truetype");
src: url("/assets/fonts/SymbolsNerdFont-Regular.ttf") format("truetype");
}


Expand Down Expand Up @@ -153,4 +153,4 @@
}




6 changes: 5 additions & 1 deletion apps/fsapp.app/filemanager.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
@font-face {
font-family: Roboto;
src: url("/assets/fonts/Roboto-Regular.ttf") format("truetype");
}

* {
color: #ffffff;
font-family: "Roboto", sans-serif;
Expand Down
17 changes: 7 additions & 10 deletions apps/fsapp.app/filemanager.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<html>
<head>
<link rel="stylesheet" href="filemanager.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
/>
<link rel="stylesheet" href="/assets/materialsymbols.css" />
<script src="/apps/libfileview.app/fileHandler.js"></script>
<script src="/assets/libs/filer.min.js"></script>
<!-- in any sane case this wouldn't be required. This isn't a sane case, Buffer doesn't work without importing this -->
Expand All @@ -15,11 +12,11 @@
<div class="container">
<div class="sidebar">
<button>
<i class="fa-solid fa-clock-rotate-left fa-lg"></i>Recent
<i class="material-symbols-outlined">history</i>Recent
</button>
<hr />
<button>
<i class="fa-solid fa-laptop fa-lg"></i>My files
<i class="material-symbols-outlined">laptop_chromebook</i>My files
</button>
</div>
<div class="fileView">
Expand All @@ -30,17 +27,17 @@
</div>
<div class="sep"></div>
<button>
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
<i class="material-symbols-outlined">search</i>
</button>
<button>
<i class="fa-solid fa-table-cells-large fa-lg"></i>
<i class="material-symbols-outlined">table_rows</i>
</button>
<button>
<i class="fa-solid fa-arrow-up-a-z fa-lg"></i>
<i class="material-symbols-outlined">sort_by_alpha</i>
<!--<i class="fa-solid fa-arrow-down-z-a fa-lg"></i> - opposite-->
</button>
<button>
<i class="fa-solid fa-ellipsis-vertical fa-lg"></i>
<i class="material-symbols-outlined">settings</i>
</button>
</div>
<hr />
Expand Down
Empty file.
File renamed without changes.
Loading

0 comments on commit 7614e8f

Please sign in to comment.