-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c650342 feat: add workflow for testing (Jose Celano) Pull request description: Add workflow for testing. ACKs for top commit: josecelano: ACK c650342 Tree-SHA512: 6e49dc714ff03f246227fb60cf6b6cc046eeddf64310c95902f33234b4e438393286386e6539880ff13a45620db584c24a028a4eca7fc69232db2aff1832de8e
- Loading branch information
Showing
47 changed files
with
870 additions
and
793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Check | ||
run: npm run check | ||
|
||
- name: Lint | ||
run: npm run lint | ||
|
||
- name: Build | ||
run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,12 +20,12 @@ Here you will find the following information: | |
Links to two visual user interface applications: | ||
|
||
- [GitHub Desktop](#github-desktop-app) | ||
Very basic easy to use user interface built by GitHub. | ||
Can through errors since it does not provide good support for repositories with GitHub submodules as of 2022-02-21. | ||
Very basic easy to use user interface built by GitHub. | ||
Can through errors since it does not provide good support for repositories with GitHub submodules as of 2022-02-21. | ||
|
||
- [GitKraken](#gitkraken-desktop-app) | ||
Complete solution with all bells and whistles, from GPG, SSH key creation, to in app pull requests, etc. Comes in three versions: Free, Pro, Enterprise. | ||
The Free versions works with public online or locally hosted repositories. | ||
Complete solution with all bells and whistles, from GPG, SSH key creation, to in app pull requests, etc. Comes in three versions: Free, Pro, Enterprise. | ||
The Free versions works with public online or locally hosted repositories. | ||
|
||
## Git | ||
|
||
|
@@ -35,7 +35,7 @@ Links to two visual user interface applications: | |
|
||
Wikipedia.org Definition: | ||
|
||
>"Git (/ɡɪt/) is software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different systems)." | ||
> "Git (/ɡɪt/) is software for tracking changes in any set of files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different systems)." | ||
Essentially it is a software that helps track and coordinate software development among developers. | ||
|
||
|
@@ -48,17 +48,17 @@ Here are some good videos that explain the what and how of Git: | |
|
||
#### Cloning Repositories | ||
|
||
>git clone <git_repository ssh url> | ||
> git clone <git_repository ssh url> | ||
In order to get the git repository ssh url you have to go to the repository, and select the green "Code" button, and here choose the "ssh" tab to then copy the url as shown in the following image: | ||
|
||
![Cloning](./docs/media_git/command-clone-01.png) | ||
|
||
You have to click on "Code" and then select "SSH" and copy the address which whould look something similar to this: | ||
|
||
>[email protected]:Nautilus-Cyberneering/chinese-ideographs-website.git | ||
> [email protected]:Nautilus-Cyberneering/chinese-ideographs-website.git | ||
**Important Note: | ||
\*\*Important Note: | ||
|
||
Before doing this step you might have to set up your git installation with OPENSSH. | ||
If you are running Windows you will have to activate the OPENSSH service and then generate a new SSH-Key for yourself and copy it into your GitHub profile security settings to do so here are some useful links: | ||
|
@@ -83,9 +83,9 @@ More on the "git clone": | |
|
||
git branch -a | ||
|
||
Note: A good habit is to update your remote repositories information to make sure that you see all the remote repositories. You can do this using the following command: | ||
Note: A good habit is to update your remote repositories information to make sure that you see all the remote repositories. You can do this using the following command: | ||
|
||
git fetch | ||
git fetch | ||
|
||
#### Switching Branches | ||
|
||
|
@@ -95,7 +95,7 @@ More on the "git clone": | |
|
||
- Remote | ||
|
||
git checkout | ||
git checkout | ||
|
||
#### Deleting | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import {dev} from '$app/environment' | ||
import { dev } from '$app/environment'; | ||
|
||
export const title = 'Secure Git Guide' | ||
export const description = 'SvelteKit' | ||
export const url = dev ? 'http://127.0.0.1:5173/' : 'url' | ||
export const title = 'Secure Git Guide'; | ||
export const description = 'SvelteKit'; | ||
export const url = dev ? 'http://127.0.0.1:5173/' : 'url'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
import {writable} from 'svelte/store' | ||
import {browser} from '$app/environment' | ||
import { writable } from 'svelte/store'; | ||
import { browser } from '$app/environment'; | ||
|
||
type Theme = 'light' | 'dark' | ||
type Theme = 'light' | 'dark'; | ||
|
||
const userTheme = browser && localStorage.getItem('color-scheme') | ||
const userTheme = browser && localStorage.getItem('color-scheme'); | ||
|
||
export const theme = writable(userTheme ?? 'dark') | ||
export const theme = writable(userTheme ?? 'dark'); | ||
|
||
export function toggleTheme(){ | ||
theme.update((currentTheme) => { | ||
const newTheme = currentTheme === 'dark' ? 'light' : 'dark' | ||
export function toggleTheme() { | ||
theme.update((currentTheme) => { | ||
const newTheme = currentTheme === 'dark' ? 'light' : 'dark'; | ||
|
||
document.documentElement.setAttribute('color-scheme', newTheme) | ||
localStorage.setItem('color-scheme', newTheme) | ||
document.documentElement.setAttribute('color-scheme', newTheme); | ||
localStorage.setItem('color-scheme', newTheme); | ||
|
||
return newTheme | ||
}) | ||
return newTheme; | ||
}); | ||
} | ||
|
||
export function setTheme(newTheme: Theme){ | ||
theme.set(newTheme) | ||
} | ||
export function setTheme(newTheme: Theme) { | ||
theme.set(newTheme); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
export type Categories = 'sveltekit' | 'svelte' | ||
export type Categories = 'sveltekit' | 'svelte'; | ||
|
||
export type Post = { | ||
title: string | ||
slug: string | ||
description: string | ||
date: string | ||
categories: Categories[] | ||
published: boolean | ||
} | ||
title: string; | ||
slug: string; | ||
description: string; | ||
date: string; | ||
categories: Categories[]; | ||
published: boolean; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
type DateStyle = Intl.DateTimeFormatOptions['dateStyle'] | ||
type DateStyle = Intl.DateTimeFormatOptions['dateStyle']; | ||
|
||
export function formatDate(date: string, dateStyle: DateStyle = 'medium', locales = 'en') { | ||
const formatter = new Intl.DateTimeFormat(locales, { dateStyle }) | ||
return formatter.format(new Date(date)) | ||
} | ||
const formatter = new Intl.DateTimeFormat(locales, { dateStyle }); | ||
return formatter.format(new Date(date)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.