Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Docs Branch #70

Merged
merged 39 commits into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c575398
initial work on workstore rewrite
ProgrammerIn-wonderland Sep 6, 2023
01b3128
its not fully working but I added some stuff
ProgrammerIn-wonderland Sep 6, 2023
661c7d1
not quite sure what I'm doing but I'll figure it out..
ProgrammerIn-wonderland Sep 6, 2023
aa2a6e7
fix a bug in workstore
ProgrammerIn-wonderland Sep 6, 2023
42f3e5c
add tooltips
ProgrammerIn-wonderland Sep 6, 2023
41ce581
fix path being hardcoded for mkdirp
ProgrammerIn-wonderland Sep 6, 2023
eaf2ee0
make clicking the workstore text return to main menu
ProgrammerIn-wonderland Sep 6, 2023
8362612
remove prod; add warning for misconfigured docker
ProgrammerIn-wonderland Sep 6, 2023
2848cb6
make a slightly better check
ProgrammerIn-wonderland Sep 6, 2023
01827fb
fix unmaximize by adding 10ms wait
ProgrammerIn-wonderland Sep 6, 2023
cb0e8e0
fix clickoff
ProgrammerIn-wonderland Sep 6, 2023
077da01
rename from cjs to js
ProgrammerIn-wonderland Sep 6, 2023
d792ded
Merge pull request #67 from MercuryWorkshop/docs
ProgrammerIn-wonderland Sep 6, 2023
55c78e0
add padding back
ProgrammerIn-wonderland Sep 6, 2023
125fb6e
change oobe options
ProgrammerIn-wonderland Sep 6, 2023
ff1c60b
lint readme
ProgrammerIn-wonderland Sep 6, 2023
a70c65b
add some padding for the oobe options
ProgrammerIn-wonderland Sep 6, 2023
0146a02
add file cache bypass
ProgrammerIn-wonderland Sep 6, 2023
c02fe1e
Update README.md
markrosenbaum Sep 6, 2023
1d1abad
Add a missing space in README.md
builtbyvys Sep 6, 2023
617fac5
Merge pull request #68 from builtbyvys/patch-1
velzie Sep 6, 2023
1fa65e6
Create CREDITS.md
markrosenbaum Sep 6, 2023
44bf19d
Create OWNERS.md
markrosenbaum Sep 6, 2023
f6b7ded
Create CONTRIBUTORS.md
markrosenbaum Sep 6, 2023
dab9fbd
Update README.md
markrosenbaum Sep 7, 2023
2523cf9
Create codeql.yml
markrosenbaum Sep 7, 2023
07e540b
Fixed codeql.yml
markrosenbaum Sep 7, 2023
efde890
Asyc Dowloads
FoxMoss Sep 7, 2023
72ec09b
JS is stupid, made promise array constant
FoxMoss Sep 7, 2023
cc498ee
Chunking Preloads
FoxMoss Sep 7, 2023
8976582
Merge pull request #69 from FoxMoss/main
velzie Sep 7, 2023
dc6e8bc
blacklist python.app from initial cache
ProgrammerIn-wonderland Sep 7, 2023
9754c39
update size estimate
ProgrammerIn-wonderland Sep 7, 2023
ced4aae
fsapp load vendor roboto
ProgrammerIn-wonderland Sep 7, 2023
1264609
set icon
ProgrammerIn-wonderland Sep 7, 2023
0f45ade
fsapp move to materialsymbols
r58Playz Sep 7, 2023
566aa67
Update README.md
markrosenbaum Sep 7, 2023
5144102
Update SECURITY.md
markrosenbaum Sep 7, 2023
48584dc
Update README.md
markrosenbaum Sep 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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