Commit Graph

668 Commits

Author SHA1 Message Date
Alex Bates b17d647999 update next-pwa and next-translate (#549) 2022-09-21 16:10:15 +09:00
Alex Bates f0f0cfb986 explain how to make a user an admin 2022-09-19 23:08:19 +01:00
Alex Bates b46b318d38 #539 again (#541)
* Revert "Revert "Frontend performance/accessiblity tweaks (#539)" (#540)"

This reverts commit 01a6ad58d5.

* don't use swc
* make useCompilation error detecting more resilient
* add browserslist
* supply sizes prop to UserAvatar Image
* be less specific about error type
2022-09-19 14:42:59 +01:00
Mark Street 6e82f7f476 Move docker env vars from docker-compose.yaml to docker.dev.env (#546) 2022-09-18 23:37:58 +01:00
Mark Street 795022c7af Freeze lockfile in CI (#547) 2022-09-18 12:34:38 -10:00
ConorB 4c20bf69fa Switch line diff implementation (#543) 2022-09-18 07:52:15 -10:00
Ethan Roseman 01a6ad58d5 Revert "Frontend performance/accessiblity tweaks (#539)" (#540)
This reverts commit be2bb90c01.
2022-09-17 16:13:43 -04:00
Alex Bates be2bb90c01 Frontend performance/accessiblity tweaks (#539)
* update eslint for next.config.js

* add webpack-bundle-analyzer

* use next/future/image

* improve text contrast in various places

* render scratch page on server

* fix username color on user page

* add title to commit hash

* fix apple-touch-icon

* remove user-scalable=no

* oops
2022-09-17 15:15:03 -04:00
Alex Bates a427382596 Fix #536 (#538)
* fix asm/context not persisting on new page

Fixes #536

* make valueVersion a required prop

Will help avoid issues like this in the future
2022-09-17 15:07:10 -04:00
Alex Bates 85402fffd3 open index if hamburger is middle-clicked (#537) 2022-09-17 07:25:09 -10:00
Alex Bates 8ef3edba73 Use overlay scrollbars in CodeMirror (#534)
* move CodeMirror styles to css module
* use overlay scrollbars in Diff and CodeMirror
2022-09-17 15:44:54 +01:00
Alex Bates bd8d7c342e Move redecompilation to an editor tab & add fork diffing (#528)
* add lazy tab content rendering

* improve renderTab typing

* change decompilation modal to a tab

* diff decompilation against source code

* highlight different lines

* fix gutter to not mistakenly show removed lines

* clean up cod

* debounce decompilations

* diff code against parent scratch

* add compare forks setting

* fix breadcrumbs margin

* delay compare for editable codemirrors

* reduce rerenders when typing quickly

* add sanity check for doc-out-of-sync bug

* fix out-of-sync bug

* compare against fork parent when scratch is not modified

* make decompile tab dismissable

* fix stylelint
2022-09-15 21:38:23 +01:00
Alex Bates 57a406d311 fix range sliders on chrome (#532) 2022-09-15 11:43:04 +09:00
Alex Bates 1044d77e97 Fix scratch action icons having overflowing text on old Chrome (#530)
* fix scratch action icons having overflowing text on old chrome

* make the icons visible
2022-09-15 11:42:20 +09:00
Alex Bates 5abadc1596 Only request public_repo GitHub scope when making a PR (#529)
* remove public_repo requirement for login

* request public_repo on pull request create if needed
2022-09-15 10:34:06 +09:00
Alex Bates 485f6e64d2 Settings fixes (#527)
* give code font size setting a default

* fix range input styling on firefox
2022-09-14 22:58:51 +09:00
Matt Kempster 963179a9bf Allow submitting PRs from scratches (#391)
* [scratch][projects] Allow submitting PRs from scratches

* Fix up mypy and test

* Move .exists() call to get_dir() in GitHubRepo

* Fix tests

* Minor cleanup

* Frontend lint

* WIP of project function

* Get tests working again

* Move PR stuff to its own viewset

* Reform commit and PR titles

* Fix mypy errors

* Remove breakpoint

* fix

* fix tests

* mypy

* remove suspense from UserAvatarList

* fix tests after mypy

* mypy

* wip pr scratch basket

* implement pr basket

* adjust basket scratch padding

* require public_repo scope

* don't allow function to be added to pr basket twice

* fix pr backend

* only allow matched funcs to be added to pr

* add margin between attempt scratchlist items

* fix mypy issues

* fix eslint issue

* possibly fix test

* pr comments

* fix tests

* remove double import

* fix stylelint

* mock GitHubRepo.get_sha()

Co-authored-by: Alex Bates <alex@nanaian.town>
2022-09-14 13:59:57 +01:00
Ethan Roseman 1c56c392d7 Add docs for vscode development (#525)
* Add docs for vscode development

* Update VSCODE.md

* Update VSCODE.md

* Update VSCODE.md
2022-09-14 20:55:01 +09:00
Alex Bates 935828bf35 Add appearance options (#523)
* add auto light theme

* increase editor contrast

* improve settings page, add theme picker

* don't rehydrate when clicking settings tab

* add code font family setting

* add code line height setting

* add code color scheme editor

* base selection/highlight colors on background not site theme

* add footer to settings page

* fix /settings links

* add color scheme presets

* fix lil bugs

* update diff colors

* darken light colorscheme bg

* 'Preferences' -> 'Settings'

* bump stylelint

* fix stylelint issues

* combine diff/code font size settings

* fix diff column distribution bug

Introduced in #520

* remove save/fork duplicate button from scratch toolbar right

* move compile button

* move settings button to nav

* allow styling cm gutter color

* fix editor height on settings

* act as sidebar when nav is toggled on large widths

* improve breadcrumb styling

* improve search styling
2022-09-14 12:15:23 +01:00
Alex Bates 594e91cad1 Merge branch 'main' of github.com:decompme/decomp.me 2022-09-14 11:58:32 +01:00
Alex Bates 9c8404e90a add frontend lint ci job 2022-09-14 11:58:29 +01:00
Mark Street d62a300e59 Ensure nsjail is enabled in CI for Docker (#524)
* Ensure nsjail is enabled in CI

* Add $IDO_CC env var to IDO compilers

* add SANDBOX_DISABLE_PROC=true to docker ci
2022-09-14 15:46:06 +09:00
Alex Bates e012b47a01 Mobile fixes & new scratch toolbar (#520)
* new mobile nav

* desktop nav

* nav style tweaks

* fix new page

* use standard nav on scratch page

* prepare scratch layout for #266

* add fixme to defaultsize

* redesign ScratchToolbar

* add more links to nav menu

* don't display online marker on yourself

* disable user-scaling on scratch page

* fix small width overflow on index page

* disable scrolling on scratch page

* try fix codemirror teleportation bug

* fix #519

* patch over diff_flags type issue

* remove padding-right from loginstate

* responsive scratch layout

* fix warning

* remove progress bar

Was causing overflow-x issues

* use floating scrollbar on macos

* fix editor overflow
2022-09-13 23:57:05 +09:00
Alex Bates 483bea5833 Add stats to homepage (#521)
* add stats to homepage

* move stats to side
2022-09-13 22:54:59 +09:00
Alex Bates 1e8a46b1c6 Gizzard Shad (#522)
* add 'Gizzard Shad' as a possible pseudonym

* grey sole + yellow perch
2022-09-13 18:13:05 +09:00
Ethan Roseman e2afa0f9ee fix ido recomp cc paths 2022-09-13 02:25:53 +09:00
EllipticEllipsis d925140f7d git subrepo pull --force backend/asm_differ (#518)
subrepo:
  subdir:   "backend/asm_differ"
  merged:   "5165956"
upstream:
  origin:   "https://github.com/simonlindholm/asm-differ"
  branch:   "main"
  commit:   "5165956"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/Homebrew/brew"
  commit:   "c5731faf8"
2022-09-05 01:38:33 +09:00
ConorB b026a2ef10 Implement colorful frog avatars for anonymous users (#517) 2022-09-03 19:21:38 +09:00
Ethan Roseman fa9bab2ec6 revert CompilationPanel changes 2022-09-03 12:18:11 +09:00
EllipticEllipsis 20e78bac6d Update m2c and asm-differ (#515)
* git subrepo pull --force backend/m2c

subrepo:
  subdir:   "backend/m2c"
  merged:   "a280267"
upstream:
  origin:   "https://github.com/matt-kempster/mips_to_c"
  branch:   "master"
  commit:   "a280267"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/Homebrew/brew"
  commit:   "c5731faf8"

* git subrepo pull --force backend/asm_differ

subrepo:
  subdir:   "backend/asm_differ"
  merged:   "ec8f731"
upstream:
  origin:   "https://github.com/simonlindholm/asm-differ"
  branch:   "main"
  commit:   "ec8f731"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/Homebrew/brew"
  commit:   "c5731faf8"

* fixes?

* python updates

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2022-09-03 11:29:21 +09:00
Ethan Roseman 8a71f42b02 Fix stylelint (#516) 2022-09-03 11:07:09 +09:00
Alex Bates 79adcdac2f Hide compilation issues panel (#514)
* click to hide compilation issues panel

* disable separator dragging when compilation is successful
2022-09-01 18:54:17 +09:00
Ethan Roseman ad89e81d0e Ability to delete scratches (#494)
* API for deleting scratches + some tests

* add ui to delete scratch

* use window.confirm instead of fancy modal

Co-authored-by: Alex Bates <alex@nanaian.town>
2022-08-31 12:27:18 +01:00
ConorB a473143fee Nicknames for anonymous users (#513)
* Begin implementing random pseudonyms for anonymous users

* Switch pseudonyms from [Adjective] / [Person] to [Adjective] / [Animal]

* Have the migration assign all users pseudonyms
(instead of lazily upon profile use)

* Tweak path handling, None checks
2022-08-30 22:24:12 +09:00
Marijn van der Werf ea6d016e85 Add SN64 compiler binaries (#511) 2022-08-22 07:03:09 +09:00
Ryan Burns f5bb1d2cd5 Add Kirby Air Ride preset (#510) 2022-08-20 07:39:05 +09:00
Rainchus bc61e944e6 Update N64 Presets (#509)
* Update compilers.py

* Update compilers.py

* Update compilers.py
2022-08-16 07:05:40 +09:00
Ethan Roseman 145b9b2f91 fix error.py bug 2022-08-12 01:51:10 +09:00
Ethan Roseman ce688263e3 Grab new github username on login (fixes #455) (#506) 2022-08-11 18:28:10 +09:00
Ethan Roseman 0d39890253 Do a sanity test for every available compiler (#507)
* Do a sanity test for every available compiler

* add parameterized

* add binutils-aarch64-linux-gnu to ci
2022-08-11 18:17:01 +09:00
Max Thomas 7c800fcdb5 Fix incorrect line numbers on NDS MWCC (#505)
* Turn off msg_show_realref to force #line to work on NDS MWCC

* Interleave stdout and stderr for sandbox run

* fix formatting

* feedback

* formatting
2022-08-11 17:19:38 +09:00
EstexNT 29d9c7ad51 Add Nintendo 3DS platform (#490)
Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2022-08-11 15:26:16 +09:00
Ethan Roseman 7fa697502a Disable MACOS9 platform (#504) 2022-08-09 23:24:10 +09:00
Ethan Roseman 191e6d2bc7 Beginning wibo migration + test stuff (#502)
* Beginning wibo migration + test stuff

* go back and make sure docker is installed after purging everything for wine...
2022-08-09 06:46:19 +09:00
Mark Street 0569c48e95 Add nginx to docker-compose + revert to Ubuntu 20.04 (#501) 2022-08-09 01:11:27 +09:00
HeartPiece 25e6712f03 Update Pikmin 1+2 presets (#500) 2022-08-03 05:37:38 -04:00
Mark Street f9fcb86d36 Add MGS PS1 preset (#499) 2022-07-31 06:06:31 -04:00
Mark Street 0611cb7ab4 provide stdout/stderr to user if compilation succeeds but no .o is generated (#497) 2022-07-30 06:37:10 -04:00
Mark Street d959da7795 Remove 'psyq gcc w/ gnu as' compilers (repoint scratches to psyq asse… (#496)
* Remove 'psyq gcc w/ gnu as' compilers (repoint scratches to psyq assembler version)

* update migration filter

* no need to download binutils for psyq anymore

* too many und_er_sc_ores
2022-07-29 16:02:20 -04:00
Ethan Roseman 91131f9b4d Revert "Replace wine with wibo (#484)"
This reverts commit e67c36d5a7.
2022-07-29 11:41:20 -04:00