Skip to content

Commit c5f9486

Browse files
committed
Subo el MARIE Modificado
1 parent f54b06c commit c5f9486

56 files changed

Lines changed: 13062 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MARIE.js-main/.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Build and Deploy to Prod
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
check:
8+
name: Check
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Repo
12+
uses: actions/checkout@v4
13+
- name: Setup Node
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: '20'
17+
cache: npm
18+
- name: Install Dependencies
19+
run: npm ci
20+
- name: Check formatting
21+
run: npm run format:check
22+
- name: Run linter
23+
run: npm run check
24+
25+
test:
26+
name: Test
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout Repo
30+
uses: actions/checkout@v4
31+
- name: Setup Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: '20'
35+
cache: npm
36+
- name: Install Dependencies
37+
run: npm ci
38+
- name: Run tests
39+
run: npm run test -- --run
40+
41+
build:
42+
name: Build
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout Repo
46+
uses: actions/checkout@v4
47+
- name: Setup Node
48+
uses: actions/setup-node@v4
49+
with:
50+
node-version: '20'
51+
cache: npm
52+
- name: Setup Pages
53+
id: setup_pages
54+
uses: actions/configure-pages@v5
55+
- name: Install Dependencies
56+
run: npm ci
57+
- name: Build
58+
run: npm run build
59+
env:
60+
BASE_PATH: ${{ steps.setup_pages.outputs.base_path }}
61+
- name: Upload artifact
62+
uses: actions/upload-pages-artifact@v3
63+
with:
64+
path: ./dist
65+
66+
deploy:
67+
if: ${{ github.ref == 'refs/heads/main' }}
68+
permissions:
69+
pages: write
70+
id-token: write
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
runs-on: ubuntu-latest
75+
needs: build
76+
steps:
77+
- name: Deploy to GitHub Pages
78+
id: deployment
79+
uses: actions/deploy-pages@v4

MARIE.js-main/.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?

MARIE.js-main/.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": ["prettier-plugin-svelte"],
3+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
4+
"singleQuote": true,
5+
"useTabs": true
6+
}

MARIE.js-main/CODEOWNERS

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# A CODEOWNERS file is used to define individuals or teams that
2+
# are responsible for code in a repository.
3+
#
4+
# Code owners are automatically requested for review when someone
5+
# opens a pull request that modifies code that they own. When
6+
# someone with admin permissions has enabled required reviews,
7+
# they can optionally require approval from a code owner.
8+
#
9+
# More information can be found here:
10+
# https://help.github.com/articles/about-codeowners/
11+
12+
# These owners will be the default owners for everything in
13+
# the repo. Unless a later match takes precedence,
14+
* @auroranil @lorderikir @cyderize

MARIE.js-main/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 The MARIE.js Team
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

MARIE.js-main/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# MARIE.js
2+
3+
MARIE.js is an implementation of a simulator for a 'Machine Architecture that is Really Intuitive and Easy'
4+
from [The Essentials of Computer Organization and Architecture](https://books.google.com.au/books/about/The_Essentials_of_Computer_Organization.html?id=3kQoAwAAQBAJ&redir_esc=y) (Linda Null, Julia Lobur) in TypeScript.
5+
6+
**[Try the simulator](https://marie.js.org/)**
7+
8+
It is used within the unit [FIT1047 - Introduction to computer systems, networks and security](http://www.monash.edu/pubs/handbooks/units/FIT1047.html) at [Monash University](https://monash.edu).
9+
10+
## Development
11+
12+
First, install dependencies with
13+
14+
```sh
15+
npm ci
16+
```
17+
18+
Then start the development server with
19+
20+
```sh
21+
npm run dev
22+
```
23+
24+
The test suite can be run with
25+
26+
```sh
27+
npm run test
28+
```
29+
30+
THe formatter and linter can be run with
31+
32+
```sh
33+
npm run format
34+
npm run check
35+
```
36+
37+
## Building
38+
39+
To build for production, run
40+
41+
```sh
42+
npm run build
43+
```
44+
45+
## License
46+
47+
MARIE.js is open-source software distributed under the [MIT License](https://opensource.org/license/mit).
48+
49+
See the [LICENSE](LICENSE) file for details.

MARIE.js-main/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/png" href="/logo.png" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>MARIE.js</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)