Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/badge spacing #1066

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1600 commits
Select commit Hold shift + click to select a range
13f107d
feat: port `CreateBot` to modal form
insertish Jul 6, 2022
d0b1a4b
feat: add test emoji page
insertish Jul 7, 2022
e72af54
feat: switch to `remark` from `markdown-it` (big)
insertish Jul 8, 2022
3245bb7
fix: limit maximum quote depth to 3
insertish Jul 8, 2022
4f6e2e7
fix: actually render HTML out instead of obliterating it
insertish Jul 8, 2022
51fc78d
fix: underline anchor; prevent jitter on render
insertish Jul 8, 2022
b9cb553
fix: correct mention styling
insertish Jul 8, 2022
51939bb
merge: remote-tracking branch 'origin/master' into feat/emojis
insertish Jul 8, 2022
0f1aaad
feat: render custom emoji
insertish Jul 8, 2022
97bcf04
feat: it's morbing time
insertish Jul 8, 2022
5760fea
feat: update emoji picker; move settings bhnd expr
insertish Jul 9, 2022
18f2e1f
fix: change quote matching Regex
insertish Jul 9, 2022
d42d795
merge: pull request #730 from revoltchat/feat/emojis
insertish Jul 9, 2022
093f058
feat: try to load any 'valid' emoji
insertish Jul 10, 2022
2d3eb46
fix: correctly pass-through preview URLs
insertish Jul 10, 2022
a710af7
chore: bump UI library
insertish Jul 10, 2022
2fd176d
fix: don't hide settings button behind bottom nav
insertish Jul 10, 2022
a6ae184
chore: bump @revoltchat/ui to 1.0.76
insertish Jul 10, 2022
396dc90
fix: remove html entities using AST plugin
insertish Jul 11, 2022
57249f6
chore: change quote depth limit to 5 from 3
insertish Jul 11, 2022
1697e16
fix: internal links would not redirect properly
insertish Jul 12, 2022
3310672
chore: hide emoji settings if no perm
insertish Jul 12, 2022
27a0ec9
feat: convert html AST nodes to text
insertish Jul 13, 2022
051a387
merge: branch 'master' into production
insertish Jul 13, 2022
e269e5e
fix: type errors with markdown content
insertish Jul 13, 2022
0cc4e65
merge: branch 'master' into production
insertish Jul 13, 2022
1dfa41a
fix: actually log out invalidate sessions
insertish Jul 13, 2022
ebfaceb
merge: branch 'master' into production
insertish Jul 13, 2022
040a6b0
feat: show message that user can't message another
insertish Jul 14, 2022
720de38
feat: make emoji picker close on select / interact elsewhere
insertish Jul 14, 2022
317c22b
merge: branch 'master' into production
insertish Jul 14, 2022
27e85d7
feat: change colour rendering
insertish Jul 15, 2022
26a245f
chore: bump revolt.js dependency
insertish Jul 15, 2022
cc712e1
feat: add separator to recovery codes when copying
insertish Jul 15, 2022
c9fedc2
feat: render masquerade colour
insertish Jul 15, 2022
29718df
feat: add change group ownership / text system msg
insertish Jul 15, 2022
b87fd33
merge: branch 'master' into production
insertish Jul 15, 2022
bd1bc79
fix: pass-through to color / unset if no gradient
insertish Jul 16, 2022
af7cd15
feat: add reactions
insertish Jul 16, 2022
740b735
merge: branch 'master' into production
insertish Jul 16, 2022
57ec1d4
fix: match optional whitespace in quote regex
insertish Jul 18, 2022
6b19e8f
fix: add LoadSuspense around verification page
insertish Jul 18, 2022
9a5e192
chore: bump lang submodule
insertish Jul 18, 2022
75abf26
merge: branch 'master' into production
insertish Jul 18, 2022
2d7a8ac
feat: add corresponding UI for `interactions` reactions
insertish Jul 30, 2022
b209f4e
chore: update lang
insertish Jul 30, 2022
6c8851a
merge: branch 'master' into production
insertish Jul 30, 2022
24ede91
fix: remove eye_speech_bubble (cursed)
insertish Jul 31, 2022
8e7aeb3
chore: handle all updates to messages
insertish Jul 31, 2022
87c935d
merge: branch 'master' into production
insertish Jul 31, 2022
d35efac
chore: update language submodule
insertish Aug 8, 2022
7f5d081
feat: add reaction button to overlay
insertish Aug 8, 2022
726e1d6
chore: clean up repository
insertish Aug 8, 2022
70224bf
chore: update lang submodule
insertish Aug 8, 2022
1d3cebe
Merge branch 'master' into production
insertish Aug 8, 2022
4bdcfa4
chore: update strings and permission lists
insertish Aug 8, 2022
7482648
Merge branch 'master' into production
insertish Aug 8, 2022
6da3527
fix: large images in website previews escape embed box
Jun 16, 2022
3de2c1e
fix: render markdown inside/after HTML tags
LedaThemis Jul 17, 2022
fab495c
fix: styling fixes (#721)
Rexogamer Aug 8, 2022
bf4696e
Merge branch 'master' into production
insertish Aug 8, 2022
644755d
chore: add @revoltchat/ui as a submodule
insertish Aug 9, 2022
28d8a5c
chore: revert back to yarn portals
insertish Aug 9, 2022
6c4a815
fix: build components during build
insertish Aug 9, 2022
0459087
chore: hide discovery button if not pointing to Revolt
insertish Aug 15, 2022
d1ba7e0
chore: remove stray log
insertish Aug 15, 2022
8c015ce
chore: update form components to be more reliable
insertish Aug 15, 2022
d55992e
fix: don't collapse whitespace / newlines
insertish Aug 18, 2022
47961fc
chore: update language definitions
insertish Aug 18, 2022
2a0c619
feat: display timeout status on client
insertish Sep 1, 2022
78e3837
chore: bump language definitions
insertish Sep 1, 2022
55a55f1
merge: branch 'master' into production
insertish Sep 1, 2022
f195bb3
feat: redesign emoji uploader
insertish Sep 2, 2022
9925a10
feat: change emojis page from grid to list
insertish Sep 2, 2022
1fc65ae
fix: ensure blockquotes are broken
insertish Sep 2, 2022
f91dd33
feat: add new reaction button to list
insertish Sep 2, 2022
e728c20
fix: remove stray text
insertish Sep 2, 2022
e33c075
merge: branch 'master' into production
insertish Sep 2, 2022
c6be688
feat: add ability to leave groups / servers silently
insertish Sep 2, 2022
13bab3a
chore: disable list behaviour if line starts with plus
insertish Sep 2, 2022
2674bb6
merge: branch 'master' into production
insertish Sep 2, 2022
4a52208
feat: use wxp logo for Windows 7
insertish Sep 3, 2022
2c695cd
merge: branch 'master' into production
insertish Sep 3, 2022
23b1c69
chore: add revolt.js as a submodule
insertish Sep 3, 2022
39f7d31
fix: correctly specify headers when removing MFA
insertish Sep 8, 2022
ea863e8
merge: branch 'master' into production
insertish Sep 8, 2022
64b47cf
merge: branch 'master' of https://github.com/revoltchat/revite
insertish Sep 8, 2022
40673df
merge: branch 'master' into production
insertish Sep 8, 2022
54e2661
feat: add indication if language is not fully translated
insertish Sep 16, 2022
08cf77d
chore: update language defns
insertish Sep 16, 2022
33da5e4
merge: branch 'master' into production
insertish Sep 16, 2022
3b72077
fix: null assertion has a chance of throwing error here
insertish Sep 17, 2022
2ee26e8
fix: re-write blockquote regex to include lists
insertish Sep 17, 2022
860bf59
merge: branch 'master' into production
insertish Sep 17, 2022
eade491
fix: sanitise links passed to react-router
insertish Sep 18, 2022
5a0a022
merge: branch 'master' into production
insertish Sep 18, 2022
0ca9884
feat: add focus mode
insertish Sep 18, 2022
8a4fa1d
fix: correctly match protocols
insertish Sep 18, 2022
67edcca
merge: branch 'master' into production
insertish Sep 18, 2022
4513493
chore: bump components dep
insertish Sep 19, 2022
23c12b7
fix: display server identity (if present) in typing indicator (#703)
LedaThemis Sep 20, 2022
3912e40
feat: display account age next to join messages (#750)
sussycatgirl Sep 20, 2022
d86888e
feat: revamp onboarding
Rexogamer Sep 10, 2022
bd62abd
chore: bump deps, remove old login background
Rexogamer Sep 10, 2022
75aca87
chore: deduplicate imports
Rexogamer Sep 10, 2022
3e5d1c5
fix: use --monospace-font
Rexogamer Sep 10, 2022
fe65bc3
feat: show role id
Rexogamer Sep 10, 2022
1f86f49
fix: let users message/hide mutuals tab for bots
Rexogamer Sep 10, 2022
709457e
fix: move leave/delete server option to the bottom
Rexogamer Sep 10, 2022
6f52127
fix: grammar, update command for dev mode
Rexogamer Sep 10, 2022
6d2b34e
chore: use ios icon for sessions, update links
Rexogamer Sep 10, 2022
62caeb0
feat: use Button component for dev page, linting
Rexogamer Sep 10, 2022
a5a34c1
chore: lay groundwork for masquerades
Rexogamer Sep 10, 2022
07af259
Use rvlt.gg instead of app.revolt.chat/invite for invites (#783)
CompeyDev Sep 20, 2022
139049b
feat: add seasonal halloween theme (#784)
4444dogs Sep 20, 2022
d0ce995
chore: bump lang submodule
insertish Sep 20, 2022
0a319a1
fix: use new lightspeed embed URL
insertish Sep 20, 2022
fd6dffb
merge: branch 'master' into production
insertish Sep 20, 2022
4dfb9e9
revert: "fix: display server identity (if present) in typing indicato…
insertish Sep 20, 2022
90bbd35
merge: branch 'master' into production
insertish Sep 20, 2022
e0a2e18
fix: add load suspense on master branch
insertish Oct 23, 2022
2181b4c
chore: remove captcha from login form
insertish Oct 23, 2022
2ab1e14
merge: branch 'master' into production
insertish Oct 23, 2022
ddc5922
chore: add notice for iCloud users
insertish Nov 6, 2022
4466b4a
fix: allow setting custom remote for publish
insertish Nov 6, 2022
72f1023
fix(ci): typing issues; broken submodules (#826)
ktwrd Dec 5, 2022
4952101
feat: list custom emojis in autocomplete (#809)
sussycatgirl Dec 5, 2022
e3e7fec
feat: allow rolt.chat for relative navigation (#814)
sussycatgirl Dec 5, 2022
b78d80a
fix: update draft check (#830)
Rexogamer Jan 24, 2023
47e33ae
fix: dash ("-" char) in emoji names (#816)
ktwrd Jan 24, 2023
2254ed0
fix(ui): add margin to delete role button (#802)
cheneyni-451 Jan 24, 2023
228873c
fix: category title input reverts to span on empty string (#699)
LedaThemis Jan 24, 2023
921159a
ci: synced local '.github/workflows/triage_issue.yml' with remote 'wo…
insertish Jan 24, 2023
b45445a
ci: synced local '.github/workflows/triage_pr.yml' with remote 'workf…
insertish Jan 24, 2023
4937a96
chore: bump submodule dependencies
insertish Jan 29, 2023
c84d07f
feat: support Streamable embeds
insertish Jan 29, 2023
8e6c65e
fix: allow dash char in autocorrect content validation (#838)
ktwrd Feb 5, 2023
57be4e3
chore: bump submodules
insertish Feb 22, 2023
a854d07
fix: do not trigger modal submission on <select>
insertish Feb 22, 2023
1a06695
feat: add reporting UI
insertish Feb 22, 2023
2a9f17d
fix(modal): trigger on keydown instead of keyup to prevent interference
insertish Feb 22, 2023
c1e1765
chore: always build highmem
insertish Feb 22, 2023
26b632e
feat: render shadows and markdown in changelogs
insertish Feb 22, 2023
028705c
feat: add changelog entry for in-app reporting
insertish Feb 22, 2023
4d7a63a
feat(modal): add report success modal (also allows blocking user)
insertish Feb 23, 2023
060e10e
chore: move date forwards
insertish Feb 23, 2023
39563d7
merge: remote-tracking branch 'origin/production'
insertish Feb 23, 2023
38efedd
fix: check if content actually exists
insertish Feb 24, 2023
38e6d7b
chore: update languages submodule
insertish Mar 14, 2023
52691ae
fix: overflow management in voice menus (#849)
DeclanChidlow Mar 14, 2023
18aef87
merge: branch 'master' of https://github.com/revoltchat/revite
insertish Mar 14, 2023
78dad8b
chore: add notices throughout app about development
insertish Mar 14, 2023
3964b9f
chore: enable emoji picker by default
insertish Mar 14, 2023
ec79045
chore: add notice to emoji menu
insertish Mar 14, 2023
7478447
chore: update components submodule
insertish Mar 18, 2023
906551a
fix inconsonant height in buttons
ashley0143 Mar 20, 2023
a22795d
add a blank space to re run CI
ashley0143 Mar 22, 2023
d68ffe8
fix: reset member sidebar fetch status when we become ready
insertish Apr 21, 2023
e35ef1b
fix: weird typing errors that cropped up
insertish Apr 21, 2023
459646a
chore: bump components and lang submodules
insertish Apr 21, 2023
b3d0ef6
fix: comment out link for nightly desktop build (#882)
ktwrd May 6, 2023
7a9bfea
chore: update lang submodule
insertish May 31, 2023
54d5c9d
feat: include message context (if any) when reporting user
insertish May 31, 2023
9ad827f
feat: add support for webhooks
insertish Jun 3, 2023
ecb6425
chore: don't update the default .env file
insertish Jun 3, 2023
0e5adb5
feat: swap pomelo usernames for discriminators
Jun 10, 2023
c9573c7
feat: back port discriminators and display names
insertish Jun 11, 2023
d4728b8
chore: move badges to top half of user profile
insertish Jun 11, 2023
961ee92
feat: add changelog entry in preparation for update
insertish Jun 11, 2023
6d5dd9b
chore: strip emoji picker experiment
insertish Jun 11, 2023
4008e3b
chore: add helpful hint for new username format
insertish Jun 11, 2023
4d5eec5
fix: use display name where available for friends
insertish Jun 11, 2023
64196d1
fix: copy full username from user profile
insertish Jun 11, 2023
f69ebad
feat: always show link warning for masked links
insertish Jun 12, 2023
711848d
chore: update typing indicator to at least use display name
insertish Jun 12, 2023
1c84bee
chore: monkey patch ulid parse error
insertish Jun 12, 2023
191acbe
chore: we cooking now frfr
insertish Jun 13, 2023
0b276e4
chore: show error on modify account
insertish Jun 15, 2023
ec3129a
feat: add more validation to KaTeX in markdown
insertish Jun 17, 2023
9c658fb
chore: update language submodule
insertish Jun 17, 2023
a91f274
feat: raise katex limit to 512, upgrade dependencies
insertish Jun 18, 2023
6c0377e
fix: usernames are evolving blog post link (#895)
FluffyCookie000 Jul 2, 2023
ea7ac20
chore: bump language submodule
insertish Jul 2, 2023
15c47b2
chore: update alerts to use new health service
insertish Jul 6, 2023
1431222
chore: update lang submodule; disable typechecking for docker build
insertish Jul 6, 2023
50070be
feat: add admin shortcuts for convenience
insertish Aug 1, 2023
98dd1ef
chore: bump language submodule
insertish Aug 1, 2023
583f025
feat: translate account management options
Rexogamer Aug 17, 2023
9cd2d8d
chore: resolve ts-to-JSX type hints
Jul 19, 2023
b46ff49
feat: admin panel link for system message user
sussycatgirl Sep 1, 2023
7275ec7
fix: appeal to monkey brain
sussycatgirl Sep 1, 2023
025b9b6
chore: bump languages submodule
insertish Oct 4, 2023
ec39a4c
chore: update dest directory
insertish Oct 4, 2023
3ed0b46
merge: pull request #864
insertish Nov 11, 2023
9d170b5
fix: only delete session if error is Unauthorized
TheBobBobs Feb 28, 2024
9edf456
docs: legacy release procedure
insertish Mar 13, 2024
dd0061b
chore: rm mirroring script
Rexogamer Mar 13, 2024
b404748
fix: allow retrying sending files
insertish Mar 15, 2024
72193cc
ci: synced local '.github/workflows/triage_pr.yml' with remote 'workf…
insertish Mar 28, 2024
a75a891
fix: remove (broken/deprecated) built-in custom emoji
Rexogamer May 16, 2024
77366cd
merge: pull request #967 from revoltchat/rexo/fix/remove-deprecated-e…
insertish Jun 9, 2024
58f6685
chore: synchronise locales
insertish Jun 9, 2024
609c135
chore: remove this so people don't click it
insertish Jun 9, 2024
793b97c
feat: add report button to user profiles
insertish Jun 23, 2024
08ba204
chore: bump revolt.js submodule
insertish Jul 27, 2024
befc324
Update .env
Aug 28, 2024
63cfee0
Update login page
Aug 28, 2024
8418615
Remove Discover tab on mobile
Aug 28, 2024
423fbb6
Fix ability to set appearence of Focus status and remove unused refer…
Aug 28, 2024
2974dda
Remove voice
Aug 28, 2024
b0a8ddd
Set app name to PepChat
Aug 28, 2024
d648cad
Remove seasonal effects and set invite links on landing page
Aug 28, 2024
6da03b3
Update branding
Aug 28, 2024
88de0e4
Update Dockerfile
Aug 28, 2024
573a588
Un gitignore assets
Aug 28, 2024
eb3871a
Update heading on landing page
Aug 28, 2024
cc61e18
Add backup URL in .env
Aug 29, 2024
3cf8eae
Update login page
Aug 29, 2024
7ea138d
Update home page server listing
Aug 29, 2024
86a8245
Update server listings
Aug 29, 2024
6bca2e5
Allow DMing non friends
Aug 30, 2024
6f3b223
Add Rabbit Hole to home page
Sep 2, 2024
17faae4
Add Johnny5 to home page
Sep 5, 2024
02255a1
Update home page servers
Sep 6, 2024
c7b8b26
Update home page servers
Sep 6, 2024
3e508c8
Add New Beginnings Research
Sep 7, 2024
2f34057
Add Monkey Peps
Sep 8, 2024
ee83b87
Remove Polypeptide Universe
Sep 8, 2024
7dce3b7
HYB live
Sep 8, 2024
11d313a
Update discover page
Sep 9, 2024
9a45d50
Modify discover
Sep 10, 2024
8fbc6c3
Update discover page
Sep 11, 2024
1c61211
Add policies and update home page
Sep 12, 2024
dc275eb
Update home
Sep 14, 2024
b8bf339
Update discover
Sep 16, 2024
8cbe1f8
Update home
Sep 21, 2024
5e4814a
Add new servers to discover
Sep 29, 2024
b118e0e
Remove DMing without Friends UI
Oct 3, 2024
f9cf661
Update home
Oct 3, 2024
f3f4ccd
Update discovery
Oct 11, 2024
dcd5f57
Update discover
Oct 20, 2024
ffe8bf1
Home page server list to load from google published file
harishvishwakarma Oct 25, 2024
e0f849c
decreased refresh time to a minute
harishvishwakarma Oct 25, 2024
bb6dd65
Implemented cache busting
harishvishwakarma Oct 25, 2024
3d25700
Merge pull request #2 from archem-team/feature/configurablehome
harishvishwakarma Oct 25, 2024
cd1811e
Highlight the new server with yellow color (#3)
harishvishwakarma Oct 27, 2024
34d7a45
Feature/homepage reordering (#4)
harishvishwakarma Nov 14, 2024
13aaf70
Katex issue fix (#7)
harishvishwakarma Nov 15, 2024
49f81fd
Replaced badges with Pepchat ones (#8)
harishvishwakarma Dec 3, 2024
26dcd54
spacing fix
harishvishwakarma Dec 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "plugins": [["@babel/plugin-proposal-decorators", { "legacy": true }]] }
10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.github
.vscode
dist
dist_injected
node_modules
.env
.env.local

Dockerfile
.dockerignore
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VITE_API_URL=https://api.revolt.chat
VITE_THEMES_URL=https://static.revolt.chat/themes
VITE_API_URL=https://peptide.chat/api
# VITE_API_URL=http://local.revolt.chat:8000
2 changes: 2 additions & 0 deletions .env.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VITE_API_URL=__API_URL__
VITE_THEMES_URL=https://themes.revolt.chat
66 changes: 66 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Bug report
description: File a bug report
title: "bug: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: textarea
id: what-happened
attributes:
label: What happened?
description: What did you expect to happen?
validations:
required: true
- type: dropdown
id: branch
attributes:
label: Branch
description: What branch of Revolt are you using?
options:
- Production (app.revolt.chat)
- Nightly (nightly.revolt.chat)
validations:
required: true
- type: textarea
id: commit-hash
attributes:
label: Commit hash
description: What is your commit hash? You can find this at the bottom of Settings, next to the branch name.
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- Other (please specify in the "What happened" form)
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. (To get this, press `CTRL`- or `CMD`-`SHIFT`-`I` and navigate to the "Console" tab.)
render: shell
- type: checkboxes
id: desktop
attributes:
label: Desktop
description: Is this bug specific to [the desktop client](https://github.com/revoltchat/desktop)? (If not, leave this unchecked.)
options:
- label: Yes, this bug is specific to Revolt Desktop and is *not* an issue with Revolt Desktop itself.
required: false
- type: checkboxes
id: pwa
attributes:
label: PWA
description: Is this bug specific to the PWA (i.e. "installing" the web app on iOS or Android)? (If not, leave this unchecked.)
options:
- label: Yes, this bug is specific to the PWA.
required: false
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
contact_links:
- name: Lounge Chat
url: https://rvlt.gg/Testers
about: Ask questions and discuss with others.
- name: Discussions
url: https://github.com/orgs/revoltchat/discussions
about: For larger feature requests and general question & answer.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Feature request
description: Make a feature request
title: "feature request: "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Before you start, a lot of bigger features may be better suited as [API issues](https://github.com/revoltchat/delta/issues/new) or [centralised discussions](https://github.com/revoltchat/revolt/discussions/new).
- type: textarea
id: your-idea
attributes:
label: What do you want to see?
description: Describe your idea in as much detail as possible - if applicable, screenshots/mockups are really useful.
validations:
required: true
- type: checkboxes
id: pwa
attributes:
label: PWA
description: Is this feature request specific to the PWA (i.e. "installing" the web app on iOS or Android)? (If not, leave this unchecked.)
options:
- label: Yes, this feature request is specific to the PWA.
required: false
33 changes: 33 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build
description: Builds a project instance, assuming all the correct project files are in the build folder

inputs:
base:
name: Base path
description: The path to use as a base for linking
required: true
default: /
folder:
name: Build Folder
description: The folder to try to build from
required: true
default: .

runs:
using: composite
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16
cache: "yarn"

- name: Install Dependencies and Build
shell: bash -l {0}
env:
BUILD_FOLDER: ${{ inputs.folder }}
BASE: ${{ inputs.base }}
run: |
cd "$BUILD_FOLDER"
yarn install
yarn build --base "$BASE"
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Please make sure to check the following tasks before opening and submitting a PR

* [ ] I understand and have followed the [contribution guide](https://github.com/revoltchat/revolt/discussions/282)
* [ ] I have tested my changes locally and they are working as intended
* [ ] These changes do not have any notable side effects on other Revolt projects
* [ ] (optional) I have opened a pull request on [the translation repository](https://github.com/revoltchat/translations)
* [ ] I have included screenshots to demonstrate my changes
111 changes: 111 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: Docker

on:
push:
branches:
- "master"
tags:
- "*"
paths-ignore:
- ".github/**"
- "!.github/workflows/docker.yml"
- "!.github/workflows/preview_*.yml"
- ".vscode/**"
- ".gitignore"
- ".gitlab-ci.yml"
- "LICENSE"
- "README"
pull_request:
branches:
- "master"
paths-ignore:
- ".github/**"
- "!.github/workflows/docker.yml"
- "!.github/workflows/preview_*.yml"
- ".vscode/**"
- ".gitignore"
- ".gitlab-ci.yml"
- "LICENSE"
- "README"
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [linux/amd64]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache/${{ matrix.architecture }}
key: ${{ runner.os }}-buildx-${{ matrix.architecture }}-${{ github.sha }}
- name: Build
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ matrix.architecture }}
cache-from: type=local,src=/tmp/.buildx-cache/${{ matrix.architecture }}
cache-to: type=local,dest=/tmp/.buildx-cache-new/${{ matrix.architecture }},mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache/${{ matrix.architecture }}
mv /tmp/.buildx-cache-new/${{ matrix.architecture }} /tmp/.buildx-cache/${{ matrix.architecture }}

publish:
needs: [test]
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache amd64 Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache/linux/amd64
key: ${{ runner.os }}-buildx-linux/amd64-${{ github.sha }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: revoltchat/client, ghcr.io/revoltchat/client
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Github Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and publish
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache/linux/amd64
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
54 changes: 54 additions & 0 deletions .github/workflows/triage_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Add Issue to Board

on:
issues:
types: [opened]

jobs:
track_issue:
runs-on: ubuntu-latest
steps:
- name: Get project data
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
run: |
gh api graphql -f query='
query {
organization(login: "revoltchat"){
projectV2(number: 3) {
id
fields(first:20) {
nodes {
... on ProjectV2SingleSelectField {
id
name
options {
id
name
}
}
}
}
}
}
}' > project_data.json

echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV
echo 'STATUS_FIELD_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .id' project_data.json) >> $GITHUB_ENV
echo 'TODO_OPTION_ID='$(jq '.data.organization.projectV2.fields.nodes[] | select(.name== "Status") | .options[] | select(.name=="Todo") |.id' project_data.json) >> $GITHUB_ENV

- name: Add issue to project
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
ISSUE_ID: ${{ github.event.issue.node_id }}
run: |
item_id="$( gh api graphql -f query='
mutation($project:ID!, $issue:ID!) {
addProjectV2ItemById(input: {projectId: $project, contentId: $issue}) {
item {
id
}
}
}' -f project=$PROJECT_ID -f issue=$ISSUE_ID --jq '.data.addProjectV2ItemById.item.id')"

echo 'ITEM_ID='$item_id >> $GITHUB_ENV
Loading
Loading