Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
43 changes: 43 additions & 0 deletions .github/workflows/Google.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
name: OS Aplet pro google cloud

on:
push:
branches:
- main

jobs:
authenticate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Authenticate to Google Cloud
uses: google-github-actions/[email protected]
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}

test:
runs-on: ubuntu-latest
needs: authenticate
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run tests
run: |
echo "Running tests..."
# Sem vložte příkazy pro spuštění testů

deploy:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Deploy to Google Cloud
run: |
echo "Deploying to Google Cloud..."
# Sem vložte příkazy pro nasazení na Google Cloud

- name: Ověření ve službě Google Cloud
používá: google-github-actions/[email protected]

74 changes: 73 additions & 1 deletion .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,73 @@
*** run: circleci/config.yml

version: 2.1

jobs:
build:
docker:
- image: circleci/python:3.8
steps:
- checkout
- run:
name: Install dependencies
command: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- run:
name: Run tests
command: |
. venv/bin/activate
pytest

workflows:
version: 2
build_and_test:
jobs: .github/workflows/config.yml
- build
jobs:
- build
version: 2.1

jobs:
build:
docker:
- image: circleci/python:3.8
steps:
- checkout
- run:
name: Install dependencies
command: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- run:
name: Run tests
command: |
. venv/bin/activate
pytest

workflows:
version: 2
build_and_test:
jobs:
- build
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
- run: npm test
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
OS Aplet ❤️ by Lukáš Budínský alias @lukins=>nyní nově @lukins-cz
OS Aplet ❤️® by Lukáš Budínský alias @lukins nebo @lukins-cz tyto profili jsou kvůli github schovány, nyní nově @osAplet
[OS Aplet - Dependencies.csv](https://github.com/lukins-cz/OS-Aplet-/files/13577570/OS.Aplet.-.Dependencies.csv)

OS Aplet ❤️ © prosinec 2012 by Lukáš Budínský podléhá licenci Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International. Chcete-li zobrazit kopii této licence, navštivte https://creativecommons.org/licenses/by-nc-sa/4.0/
run:

OS Aplet ❤️® byl napsán již někdy © prosinec 2012 by Lukáš Budínský, podléhá licenci
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International. Chcete-li zobrazit kopii této licence, navštivte https://creativecommons.org/licenses/by-nc-sa/4.0/
Jde o můj jedinečný inteligentní automatický operační systém OS Aplet ❤️®

4 changes: 4 additions & 0 deletions codeswing.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"scripts": [],
"styles": []
}
Empty file added index.html
Empty file.
Empty file added script.js
Empty file.
36 changes: 36 additions & 0 deletions script.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Definice funkcí pro základní matematické operace

// Sčítání
export function add(a, b) {
return a + b;
}

// Odčítání
export function subtract(a, b) {
return a - b;
}

// Násobení
export function multiply(a, b) {
return a * b;
}

// Dělení
export function divide(a, b) {
if (b === 0) {
throw new Error("Dělení nulou není povoleno.");
}
return a / b;
}

// Import funkcí z modulu 'math.js'
import { add, subtract, multiply, divide } from './math.js';

// Použití importovaných funkcí
const a = 10;
const b = 5;

console.log(`Sčítání: ${a} + ${b} = ${add(a, b)}`);
console.log(`Odčítání: ${a} - ${b} = ${subtract(a, b)}`);
console.log(`Násobení: ${a} * ${b} = ${multiply(a, b)}`);
console.log(`Dělení: ${a} / ${b} = ${divide(a, b)}`);
83 changes: 83 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/* Reset základních stylů */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* Nastavení základních stylů pro tělo stránky */
body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
padding: 20px;
}

/* Nadpisy */
h1, h2, h3, h4, h5, h6 {
margin-bottom: 20px;
color: #444;
}

/* Odkazy */
a {
color: #007bff;
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

/* Kontejner */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}

/* Základní nastavení pro tlačítka */
button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
}

button:hover {
background-color: #0056b3;
}

/* Flexbox rozložení */
.flex {
display: flex;
justify-content: space-between;
align-items: center;
}

/* Karty */
.card {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 5px;
padding: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin-bottom: 20px;
}

/* Formuláře */
input, textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 5px;
}

input:focus, textarea:focus {
outline: none;
border-color: #007bff;
}