Skip to content

Commit e332b74

Browse files
Insun35yijun-leehealthykim
committed
init commit
Co-authored-by: yijun-lee <[email protected]> Co-authored-by: healthykim <[email protected]>
0 parents  commit e332b74

File tree

241 files changed

+23021
-0
lines changed

Some content is hidden

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

241 files changed

+23021
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [jackyzha0]

.github/ISSUE_TEMPLATE/bug_report.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug report
3+
about: Something about Quartz isn't working the way you expect
4+
title: ""
5+
labels: bug
6+
assignees: ""
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots and Source**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
You can help speed up fixing the problem by either
27+
28+
1. providing a simple reproduction
29+
2. linking to your Quartz repository where the problem can be observed
30+
31+
**Desktop (please complete the following information):**
32+
33+
- Quartz Version: [e.g. v4.1.2]
34+
- `node` Version: [e.g. v18.16]
35+
- `npm` version: [e.g. v10.1.0]
36+
- OS: [e.g. iOS]
37+
- Browser [e.g. chrome, safari]
38+
39+
**Additional context**
40+
Add any other context about the problem here.
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea or improvement for Quartz
4+
title: ""
5+
labels: enhancement
6+
assignees: ""
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yaml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build and Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- v4
7+
push:
8+
branches:
9+
- v4
10+
11+
jobs:
12+
build-and-test:
13+
if: ${{ github.repository == 'jackyzha0/quartz' }}
14+
strategy:
15+
matrix:
16+
os: [windows-latest, macos-latest, ubuntu-latest]
17+
runs-on: ${{ matrix.os }}
18+
permissions:
19+
contents: write
20+
steps:
21+
- uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup Node
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: 18
29+
30+
- name: Cache dependencies
31+
uses: actions/cache@v3
32+
with:
33+
path: ~/.npm
34+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
35+
restore-keys: |
36+
${{ runner.os }}-node-
37+
38+
- run: npm ci
39+
40+
- name: Check types and style
41+
run: npm run check
42+
43+
- name: Test
44+
run: npm test
45+
46+
- name: Ensure Quartz builds, check bundle info
47+
run: npx quartz build --bundleInfo
48+
49+
publish-tag:
50+
if: ${{ github.repository == 'jackyzha0/quartz' && github.ref == 'refs/heads/v4' }}
51+
runs-on: ubuntu-latest
52+
permissions:
53+
contents: write
54+
steps:
55+
- uses: actions/checkout@v3
56+
with:
57+
fetch-depth: 0
58+
- name: Setup Node
59+
uses: actions/setup-node@v3
60+
with:
61+
node-version: 18
62+
- name: Get package version
63+
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
64+
- name: Create release tag
65+
uses: pkgdeps/git-tag-action@v2
66+
with:
67+
github_token: ${{ secrets.GITHUB_TOKEN }}
68+
github_repo: ${{ github.repository }}
69+
version: ${{ env.PACKAGE_VERSION }}
70+
git_commit_sha: ${{ github.sha }}
71+
git_tag_prefix: "v"

.github/workflows/deploy.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy Quartz site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- v4
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-22.04
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0 # Fetch all history for git info
24+
- uses: actions/setup-node@v4
25+
- name: Install Dependencies
26+
run: npm ci
27+
- name: Build Quartz
28+
run: npx quartz build
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: public
33+
34+
deploy:
35+
needs: build
36+
environment:
37+
name: github-pages
38+
url: ${{ steps.deployment.outputs.page_url }}
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.DS_Store
2+
.gitignore
3+
node_modules
4+
public
5+
prof
6+
tsconfig.tsbuildinfo
7+
.obsidian
8+
.quartz-cache
9+
private/
10+
.replit
11+
replit.nix

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public
2+
node_modules
3+
.quartz-cache

.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 100,
3+
"quoteProps": "as-needed",
4+
"trailingComma": "all",
5+
"tabWidth": 2,
6+
"semi": false
7+
}

CODE_OF_CONDUCT.md

+90
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# Citizen Code of Conduct
2+
3+
## 1. Purpose
4+
5+
A primary goal of the Quartz community is to be inclusive to the largest number of contributors, with the most varied and diverse backgrounds possible. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, ability, ethnicity, socioeconomic status, and religion (or lack thereof).
6+
7+
This code of conduct outlines our expectations for all those who participate in our community, as well as the consequences for unacceptable behavior.
8+
9+
We invite all those who participate in the Quartz community to help us create safe and positive experiences for everyone.
10+
11+
## 2. Open [Source/Culture/Tech] Citizenship
12+
13+
A supplemental goal of this Code of Conduct is to increase open [source/culture/tech] citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
14+
15+
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
16+
17+
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, we want to know.
18+
19+
## 3. Expected Behavior
20+
21+
The following behaviors are expected and requested of all community members:
22+
23+
- Participate in an authentic and active way. In doing so, you contribute to the health and longevity of this community.
24+
- Exercise consideration and respect in your speech and actions.
25+
- Attempt collaboration before conflict.
26+
- Refrain from demeaning, discriminatory, or harassing behavior and speech.
27+
- Be mindful of your surroundings and of your fellow participants. Alert community leaders if you notice a dangerous situation, someone in distress, or violations of this Code of Conduct, even if they seem inconsequential.
28+
- Remember that community event venues may be shared with members of the public; please be respectful to all patrons of these locations.
29+
30+
## 4. Unacceptable Behavior
31+
32+
The following behaviors are considered harassment and are unacceptable within our community:
33+
34+
- Violence, threats of violence or violent language directed against another person.
35+
- Sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory jokes and language.
36+
- Posting or displaying sexually explicit or violent material.
37+
- Posting or threatening to post other people's personally identifying information ("doxing").
38+
- Personal insults, particularly those related to gender, sexual orientation, race, religion, or disability.
39+
- Inappropriate photography or recording.
40+
- Inappropriate physical contact. You should have someone's consent before touching them.
41+
- Unwelcome sexual attention. This includes, sexualized comments or jokes; inappropriate touching, groping, and unwelcomed sexual advances.
42+
- Deliberate intimidation, stalking or following (online or in person).
43+
- Advocating for, or encouraging, any of the above behavior.
44+
- Sustained disruption of community events, including talks and presentations.
45+
46+
## 5. Weapons Policy
47+
48+
No weapons will be allowed at Quartz community events, community spaces, or in other spaces covered by the scope of this Code of Conduct. Weapons include but are not limited to guns, explosives (including fireworks), and large knives such as those used for hunting or display, as well as any other item used for the purpose of causing injury or harm to others. Anyone seen in possession of one of these items will be asked to leave immediately, and will only be allowed to return without the weapon. Community members are further expected to comply with all state and local laws on this matter.
49+
50+
## 6. Consequences of Unacceptable Behavior
51+
52+
Unacceptable behavior from any community member, including sponsors and those with decision-making authority, will not be tolerated.
53+
54+
Anyone asked to stop unacceptable behavior is expected to comply immediately.
55+
56+
If a community member engages in unacceptable behavior, the community organizers may take any action they deem appropriate, up to and including a temporary ban or permanent expulsion from the community without warning (and without refund in the case of a paid event).
57+
58+
## 7. Reporting Guidelines
59+
60+
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify a community organizer as soon as possible. [email protected].
61+
62+
Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
63+
64+
## 8. Addressing Grievances
65+
66+
If you feel you have been falsely or unfairly accused of violating this Code of Conduct, you should notify @jackyzha0 with a concise description of your grievance. Your grievance will be handled in accordance with our existing governing policies.
67+
68+
## 9. Scope
69+
70+
We expect all community participants (contributors, paid or otherwise; sponsors; and other guests) to abide by this Code of Conduct in all community venues--online and in-person--as well as in all one-on-one communications pertaining to community business.
71+
72+
This code of conduct and its related procedures also applies to unacceptable behavior occurring outside the scope of community activities when such behavior has the potential to adversely affect the safety and well-being of community members.
73+
74+
## 10. Contact info
75+
76+
77+
78+
## 11. License and attribution
79+
80+
The Citizen Code of Conduct is distributed by [Stumptown Syndicate](http://stumptownsyndicate.org) under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
81+
82+
Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
83+
84+
_Revision 2.3. Posted 6 March 2017._
85+
86+
_Revision 2.2. Posted 4 February 2016._
87+
88+
_Revision 2.1. Posted 23 June 2014._
89+
90+
_Revision 2.0, adopted by the [Stumptown Syndicate](http://stumptownsyndicate.org) board on 10 January 2013. Posted 17 March 2013._

Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:20-slim as builder
2+
WORKDIR /usr/src/app
3+
COPY package.json .
4+
COPY package-lock.json* .
5+
RUN npm ci
6+
7+
FROM node:20-slim
8+
WORKDIR /usr/src/app
9+
COPY --from=builder /usr/src/app/ /usr/src/app/
10+
COPY . .
11+
CMD ["npx", "quartz", "build", "--serve"]

LICENSE.txt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 jackyzha0
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.

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Quartz v4
2+
3+
> [One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming
4+
5+
Quartz is a set of tools that helps you publish your [digital garden](https://jzhao.xyz/posts/networked-thought) and notes as a website for free.
6+
Quartz v4 features a from-the-ground rewrite focusing on end-user extensibility and ease-of-use.
7+
8+
🔗 Read the documentation and get started: https://quartz.jzhao.xyz/
9+
10+
[Join the Discord Community](https://discord.gg/cRFFHYye7t)
11+
12+
## Sponsors
13+
14+
<p align="center">
15+
<a href="https://github.com/sponsors/jackyzha0">
16+
<img src="https://cdn.jsdelivr.net/gh/jackyzha0/jackyzha0/sponsorkit/sponsors.svg" />
17+
</a>
18+
</p>
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
> [!Info]
2+
> [[Basic Algebra]] provides foundational knowledge essential for understanding cryptographic systems. It covers key algebraic concepts such as groups, fields, and rings, which are important to understand cryptographic algorithms.
3+
4+
- [[Binary Operation]]
5+
- [[Monoid]]
6+
- [[Group]]
7+
- [[Subgroup]]
8+
- [[Cyclic Subgroup]]
9+
- [[Ring]]
10+
- [[Binary Relation]]
11+
- [[Equivalence Relation]]
12+
- [[Quotient Ring]]
13+
- [[Ring Homomorphism]]
14+
- [[Field]]
15+
- [[Finite Field]]
16+
- [[Cyclotomic polynomial]]
17+
- [[Discrete Fourier Transform]]
18+
- [[Fast Fourier Transform]]
19+
- [[Number Theoretic Transform]]
20+
- [[Residue Number System]]
21+
- [[Chinese Remainder Theorem]]
22+
- [[Automorphism]]
23+
- [[Elliptic Curves]]
24+
- [[Discrete logarithm]]
25+
- [[ECDLP]]
26+

0 commit comments

Comments
 (0)