-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Akhilesh Kr. Yadav
authored and
Akhilesh Kr. Yadav
committed
Dec 5, 2024
0 parents
commit 1f5d116
Showing
1,110 changed files
with
258,853 additions
and
0 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,5 @@ | ||
FROM node:18-bullseye | ||
|
||
# Vite wants to open the browser using `open`, so we | ||
# need to install those utils. | ||
RUN apt update -y && apt install -y xdg-utils |
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,50 @@ | ||
{ | ||
// These tasks will run in order when initializing your CodeSandbox project. | ||
"setupTasks": [ | ||
{ | ||
"name": "Install Dependencies", | ||
"command": "yarn install" | ||
} | ||
], | ||
|
||
// These tasks can be run from CodeSandbox. Running one will open a log in the app. | ||
"tasks": { | ||
"build": { | ||
"name": "Build", | ||
"command": "yarn build", | ||
"runAtStart": false | ||
}, | ||
"fix": { | ||
"name": "Fix", | ||
"command": "yarn fix", | ||
"runAtStart": false | ||
}, | ||
"prettier": { | ||
"name": "Prettify", | ||
"command": "yarn prettier", | ||
"runAtStart": false | ||
}, | ||
"start": { | ||
"name": "Start Excalidraw", | ||
"command": "yarn start", | ||
"runAtStart": true, | ||
"preview": { | ||
"port": 3000 | ||
} | ||
}, | ||
"test": { | ||
"name": "Run Tests", | ||
"command": "yarn test", | ||
"runAtStart": false | ||
}, | ||
"install-deps": { | ||
"name": "Install Dependencies", | ||
"command": "yarn install", | ||
"restartOn": { | ||
"files": ["yarn.lock"], | ||
"branch": false, | ||
"resume": false | ||
} | ||
} | ||
} | ||
} |
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,19 @@ | ||
* | ||
!.env.development | ||
!.env.production | ||
!.eslintrc.json | ||
!.npmrc | ||
!.prettierrc | ||
!excalidraw-app/ | ||
!package.json | ||
!public/ | ||
!packages/ | ||
!scripts/ | ||
!tsconfig.json | ||
!yarn.lock | ||
|
||
# keep (sub)sub directories at the end to exclude from explicit included | ||
# e.g. ./packages/excalidraw/{dist,node_modules} | ||
**/build | ||
**/dist | ||
**/node_modules |
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,12 @@ | ||
# http://EditorConfig.org | ||
|
||
# top-level EditorConfig file | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true |
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,50 @@ | ||
VITE_APP_BACKEND_V2_GET_URL=https://json-dev.excalidraw.com/api/v2/ | ||
VITE_APP_BACKEND_V2_POST_URL=https://json-dev.excalidraw.com/api/v2/post/ | ||
|
||
VITE_APP_LIBRARY_URL=https://libraries.excalidraw.com | ||
VITE_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries | ||
|
||
# collaboration WebSocket server (https://github.com/excalidraw/excalidraw-room) | ||
VITE_APP_WS_SERVER_URL=http://localhost:3002 | ||
|
||
VITE_APP_PLUS_LP=https://plus.excalidraw.com | ||
VITE_APP_PLUS_APP=http://localhost:3000 | ||
|
||
VITE_APP_AI_BACKEND=http://localhost:3015 | ||
|
||
VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}' | ||
|
||
# put these in your .env.local, or make sure you don't commit! | ||
# must be lowercase `true` when turned on | ||
# | ||
# whether to disable live reload / HMR. Usuaully what you want to do when | ||
# debugging Service Workers. | ||
VITE_APP_DEV_DISABLE_LIVE_RELOAD= | ||
VITE_APP_ENABLE_TRACKING=true | ||
|
||
FAST_REFRESH=false | ||
|
||
# The port the run the dev server | ||
VITE_APP_PORT=3000 | ||
|
||
#Debug flags | ||
|
||
# To enable bounding box for text containers | ||
VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX= | ||
|
||
# Set this flag to false if you want to open the overlay by default | ||
VITE_APP_COLLAPSE_OVERLAY=true | ||
|
||
# Set this flag to false to disable eslint | ||
VITE_APP_ENABLE_ESLINT=true | ||
|
||
# Enable PWA in dev server | ||
VITE_APP_ENABLE_PWA=false | ||
|
||
VITE_APP_PLUS_EXPORT_PUBLIC_KEY='MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0 | ||
7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij | ||
ba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y | ||
UNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD | ||
s9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot | ||
kdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS | ||
HQIDAQAB' |
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,32 @@ | ||
VITE_APP_BACKEND_V2_GET_URL=https://json.excalidraw.com/api/v2/ | ||
VITE_APP_BACKEND_V2_POST_URL=https://json.excalidraw.com/api/v2/post/ | ||
|
||
VITE_APP_LIBRARY_URL=https://libraries.excalidraw.com | ||
VITE_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries | ||
|
||
VITE_APP_PLUS_LP=https://plus.excalidraw.com | ||
VITE_APP_PLUS_APP=https://app.excalidraw.com | ||
|
||
VITE_APP_AI_BACKEND=https://oss-ai.excalidraw.com | ||
|
||
# socket server URL used for collaboration | ||
VITE_APP_WS_SERVER_URL=https://oss-collab.excalidraw.com | ||
|
||
VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}' | ||
|
||
VITE_APP_ENABLE_TRACKING=false | ||
|
||
VITE_APP_PLUS_EXPORT_PUBLIC_KEY='MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApQ0jM9Qz8TdFLzcuAZZX | ||
/WvuKSOJxiw6AR/ZcE3eFQWM/mbFdhQgyK8eHGkKQifKzH1xUZjCxyXcxW6ZO02t | ||
kPOPxhz+nxUrIoWCD/V4NGmUA1lxwHuO21HN1gzKrN3xHg5EGjyouR9vibT9VDGF | ||
gq6+4Ic/kJX+AD2MM7Yre2+FsOdysrmuW2Fu3ahuC1uQE7pOe1j0k7auNP0y1q53 | ||
PrB8Ts2LUpepWC1l7zIXFm4ViDULuyWXTEpUcHSsEH8vpd1tckjypxCwkipfZsXx | ||
iPszy0o0Dx2iArPfWMXlFAI9mvyFCyFC3+nSvfyAUb2C4uZgCwAuyFh/ydPF4DEE | ||
PQIDAQAB' | ||
|
||
# Set the below flags explicitly to false in production mode since vite loads and merges .env.local vars when running the build command | ||
VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX=false | ||
VITE_APP_COLLAPSE_OVERLAY=false | ||
# Enable eslint in dev server | ||
VITE_APP_ENABLE_ESLINT=false | ||
|
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,11 @@ | ||
node_modules/ | ||
build/ | ||
package-lock.json | ||
.vscode/ | ||
firebase/ | ||
dist/ | ||
public/workbox | ||
packages/excalidraw/types | ||
examples/**/public | ||
dev-dist | ||
coverage |
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,8 @@ | ||
{ | ||
"extends": ["@excalidraw/eslint-config", "react-app"], | ||
"rules": { | ||
"import/no-anonymous-default-export": "off", | ||
"no-restricted-globals": "off", | ||
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports", "disallowTypeAnnotations": false, "fixStyle": "separate-type-imports" }] | ||
} | ||
} |
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 @@ | ||
* text=auto eol=lf |
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 @@ | ||
open_collective: excalidraw |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,27 @@ | ||
name: Auto release excalidraw next | ||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
Auto-release-excalidraw-next: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 2 | ||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18.x | ||
- name: Set up publish access | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Auto release | ||
run: | | ||
yarn add @actions/core -W | ||
yarn autorelease |
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,55 @@ | ||
name: Auto release excalidraw preview | ||
on: | ||
issue_comment: | ||
types: [created, edited] | ||
|
||
jobs: | ||
Auto-release-excalidraw-preview: | ||
name: Auto release preview | ||
if: github.event.comment.body == '@excalibot trigger release' && github.event.issue.pull_request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: React to release comment | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
token: ${{ secrets.PUSH_TRANSLATIONS_COVERAGE_PAT }} | ||
comment-id: ${{ github.event.comment.id }} | ||
reactions: "+1" | ||
- name: Get PR SHA | ||
id: sha | ||
uses: actions/github-script@v4 | ||
with: | ||
result-encoding: string | ||
script: | | ||
const { owner, repo, number } = context.issue; | ||
const pr = await github.pulls.get({ | ||
owner, | ||
repo, | ||
pull_number: number, | ||
}); | ||
return pr.data.head.sha | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ steps.sha.outputs.result }} | ||
fetch-depth: 2 | ||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18.x | ||
- name: Set up publish access | ||
run: | | ||
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Auto release preview | ||
id: "autorelease" | ||
run: | | ||
yarn add @actions/core -W | ||
yarn autorelease preview ${{ github.event.issue.number }} | ||
- name: Post comment post release | ||
if: always() | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
token: ${{ secrets.PUSH_TRANSLATIONS_COVERAGE_PAT }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: "@${{ github.event.comment.user.login }} ${{ steps.autorelease.outputs.result }}" |
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,13 @@ | ||
name: Build Docker image | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
build-docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: docker build -t excalidraw . |
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,17 @@ | ||
name: Cancel previous runs | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
pull_request: | ||
|
||
jobs: | ||
cancel: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
steps: | ||
- uses: styfle/[email protected] | ||
with: | ||
workflow_id: 400555, 400556, 905313, 1451724, 1710116, 3185001, 3438604 | ||
access_token: ${{ secrets.GITHUB_TOKEN }} |
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,22 @@ | ||
name: Lint | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install and lint | ||
run: | | ||
yarn install | ||
yarn test:other | ||
yarn test:code | ||
yarn test:typecheck |
Oops, something went wrong.