Commit Graph

349 Commits

Author SHA1 Message Date
Carter 1940c6e1ba Fix editor state issues (#173)
* Add MarkdownEditor component with default value and disabled option

* Add editorThemeCompartment for customizing editor theme
2023-12-28 16:48:10 -08:00
Carter f6eff090e7 Accept image pasting functionality (#151)
* Accept image pasting functionality

* Bump to 0.7.1

* Default alt text should be like github

* sync modelValue changes to codemirror state

* Refactor image uploading in paste

* Fix error handling in image upload
2023-11-18 21:55:34 -07:00
Prospector cbcee037a7 Merge pull request #147 from modrinth/redesign/new-promo-style
Port Promotion to redesign style
2023-11-15 17:14:28 -08:00
Prospector de2e4a9c7f Merge branch 'master' into redesign/new-promo-style 2023-11-15 17:14:20 -08:00
Prospector 0ba0a5bcd8 Merge pull request #148 from modrinth/feature/overflow-menu-links
Add link support to overflow menus
2023-11-15 17:11:24 -08:00
Prospector 70cc409402 docs 2023-11-15 17:10:10 -08:00
Prospector 160ca610ae Bump version 2023-11-15 17:09:06 -08:00
Prospector 2f1aa95f4c Allow links in overflow menus 2023-11-15 17:08:55 -08:00
Carter 3eead128a6 Image-validation (#144)
* Add spoiler tag functionality to CodeMirror

* Refactor image insertion logic in
MarkdownEditor.vue

* Refactor modal state reset functions in
MarkdownEditor.vue
2023-11-15 12:36:34 -07:00
Prospector 4c22a73ff3 Decrease ad border opacity 2023-11-15 09:49:38 -08:00
Prospector a78f58de92 Merge branch 'master' into redesign/new-promo-style 2023-11-15 09:38:02 -08:00
Prospector fcda48903b Merge pull request #146 from modrinth/fix/popout-pointer-events
Fix popout menu pointer events
2023-11-15 09:25:48 -08:00
Prospector 3f9805ac56 Fix bump version 2023-11-15 09:23:31 -08:00
Prospector 2131fed0bb Update promo styling 2023-11-15 09:22:02 -08:00
Prospector baa5d2fcac Bump version 2023-11-15 08:18:34 -08:00
Prospector 7cf9b76eb5 Fix popout menu pointer events 2023-11-15 08:17:27 -08:00
Mysterious_Dev 200648275e Convert EnvironmentIndicator component to Composition API (#125) 2023-11-14 17:35:41 -05:00
Geometrically 74e6caf633 Fix use of unscoped CSS (#140) 2023-11-13 20:16:39 -05:00
Sasha Sorokin 5051ad91ff Fix ambiguous default export (#113)
Currently Omorphia's index file has both the default and named exports.
While this is totally supported by native ESM, it's pretty hard for
transpilers to process and may lead to situations where named exports
cannot be imported directly, requiring destructuring on the default
import. For this and just consistency reasons, you'd usually avoid
mixing default and named exports.

This commit removes the default export, making it just an another named
export called `plugin`.

BREAKING CHANGE: plugin is now exported using `plugin` export, rather
than the default export.
2023-11-13 13:36:07 -07:00
Mysterious_Dev 06d6cb6d19 Convert CopyCode component to Composition API (#124)
* Convert CopyCode component to Composition API

* ^^/
2023-11-13 13:08:28 -07:00
Mysterious_Dev 92116273b0 Convert Checkbox component to Composition API (#126)
* Convert Checkbox component to Composition API

* Apply suggestions from brawaru

* Fix lint error

* Apply suggestions from brawaru
2023-11-13 13:06:42 -07:00
Mysterious_Dev 6169ff99a2 Convert Pagination component to Composition API (#127)
* Convert Pagination component to Composition API

* Apply suggestions by brawaru

* Fix lint error

* Apply suggestions from brawaru
2023-11-13 13:06:06 -07:00
Mysterious_Dev 67f77d027a Use Typescript for Card component (#128)
* Use Typescript for Card component

* Update Card.vue
2023-11-13 13:05:43 -07:00
Mysterious_Dev 39e1a803a1 Use TypeScript for Promotion component (#131)
* Use TypeScript for Promotion component

* Apply suggestion from brawaru
2023-11-13 13:05:01 -07:00
Mysterious_Dev ba159e1a3e Add translation keys for Environment Indicator component (#136)
* Begin Work

* Finish work
2023-11-13 13:04:35 -07:00
Mysterious_Dev a60b77121a Add translation keys for Badge Component & improve documentation (#137)
* Begin Work

* Ordering

* Add all keys to JSON file

* Add accepted, approved, archived & closed keys to vue component

* Add draft, failed, listed keys to vue component

* Format (fix lint) & improve documentation

* Finish the work
2023-11-13 13:04:14 -07:00
Erlend 810f0104be Fix small typo on Avatar doc (#138) 2023-11-13 13:03:42 -07:00
Geometrically 07489fb405 Revert #87 (#139) 2023-11-13 12:58:33 -07:00
Mysterious_Dev 66154b30c1 Add Prefers Reduced Motion support for most components (#133) 2023-11-11 17:22:01 -05:00
ToBinio bf5d391d53 fix SearchFilter.vue (#123) 2023-11-11 15:12:24 -07:00
Sasha Sorokin 591ce0894e Add translations support (#116) 2023-11-11 17:03:58 -05:00
ToBinio 1c18563dfb update VitePress (#117) 2023-11-11 16:48:52 -05:00
ToBinio b60e781767 convert slider to typescript (#108) 2023-11-11 16:39:25 -05:00
Sasha Sorokin ca54544b82 Fix declaration types for icons (#114) 2023-11-11 16:32:56 -05:00
Sasha Sorokin 9c3ff71ce4 Make Omorphia an ESM-only module (#115) 2023-11-11 16:22:00 -05:00
Mysterious_Dev fd82ec7659 Fix page for modal documentation (#132) 2023-11-11 16:09:19 -05:00
Carter 39a4297168 Requested Changes for Editor Knossos Implementation (#129)
* placeholder

* max length & placeholder

* Accept editor comment conflict

* integrate requested features

* null check for ref

* Change prompt for image upload

* change filter for proper input blocking

* Add spoiler button

* change url of helper link

* shallow resource link style

* resource link inherit site style

* detach preview styling from markdown-body style

* remove sizing dependance on global styles

* Bump 0.6.5
2023-10-30 16:59:43 -07:00
Carter 544111846c Tweaks for Knossos Integration (#122)
* placeholder

* max length & placeholder

* remove default placeholder

* remove scoped css

* allow for throwing in the upload process

* explicit import of info

* fix aggressive card input selection
2023-10-27 17:20:13 -07:00
Carter 79bdea0441 MOD-349 Contextual Uploads for MD Editor (#119)
* Migrate DropArea to composition

* remove hardcoded button styling

* let markdown editor call for image upload

* allow for local testing in the docs

* validate url on set

* add chips to modal with correct defaults

* update docs to show example url doesn't load

* Bump version 0.6.4
2023-10-26 14:34:15 -07:00
Adrian O.V c056c4e79e Improved graphs (#120)
* Complete chart overhaul

* Update package.json

* Update pnpm-lock.yaml

* run lint

* whoops

* Update pnpm-lock.yaml

* Update analytics.md

* Try again?

* Update Chart.vue

* Added Compact/Spark charts

* Added number formatting and cleanup

* Touch ups

* improve default colors

* removed unnecessary tooltip
2023-10-26 11:39:26 -07:00
Carter 16a39b364c Change editor to comply with domain rules MOD-537 (#118)
* insert link rules

* change error message
2023-10-23 17:02:08 -07:00
Emma Alexia 91f79d2be0 Bump version v0.6.2 (#112) 2023-10-20 23:58:59 -04:00
Sasha Sorokin 9932fe5055 Fix relativeTime dayjs plugin import (#111) 2023-10-20 23:34:02 -04:00
Prospector c296597427 Markdown editor (#92)
* Markdown editor

* use nocookie YT iframes

Co-authored-by: Emma Alexia Triphora <emma@modrinth.com>

* Fix line prefix-related Markdown editor bugs and add auto-lists

* Fix a couple codeblock issues

* address SearchFilter composition

* standardize code and patternize editor

* make editor typesafe

* adjust imports

* simplify key press handler

* Codemirror markdown implementation (#106)

* demo

* custom newline logic

* basic editor styling and buttons

* propogate styles

* validate and command structure for modals

* mobile safari event fix

* remove url field causing remount

* browser & mobile fix for link insertion

* override event passthrough to fix mobile

* fix modal state & disallow invalid url submission

* override paste behavior

* remove block flag in favor of newline insert

* cleanup before pr

* emit value from editor

* remove "a"

---------

Co-authored-by: Emma Alexia Triphora <emma@modrinth.com>
Co-authored-by: Carter <safe@fea.st>
2023-10-20 16:55:38 -07:00
Prospector 97cb5bc12c Merge pull request #110 from modrinth/fix/dropdown-icon-animation
Only animate the dropdown svg if last child
2023-10-20 09:11:59 -07:00
Prospector 7c596d6bf1 bump version 2023-10-20 08:47:25 -07:00
Prospector b68799e2d1 Only animate the dropdown svg if last child 2023-10-20 08:20:33 -07:00
Prospector a3d4db9fc1 Fix popout menu tab indices and buttons within being clickable when closed (#107) 2023-10-17 14:37:37 -07:00
Emma Alexia 8369330053 Move many things over from Knossos (and other rearrangements) (#102) 2023-10-16 21:18:23 -04:00
ToBinio 46a6fee81d fix Markdown table corners (#105) 2023-10-16 21:02:39 -04:00