-
Notifications
You must be signed in to change notification settings - Fork 5
Vue 3 Migration #139
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
Merged
Merged
Vue 3 Migration #139
Changes from 121 commits
Commits
Show all changes
133 commits
Select commit
Hold shift + click to select a range
c42c090
Handle failed fetches / anonymous user tooltips
MarkH817 e558acb
Convert App, Login, and DraggableDiv to Composition API
MarkH817 98ce1fe
Rename login form file
MarkH817 be3e5a3
Allow chat/setting store proxies access outside of classes
MarkH817 968e997
Convert more components to Composition API format
MarkH817 1cc7c61
Remove vue-resource. Not used.
MarkH817 66778d6
Update OperLogin to Composition API
MarkH817 f60cd78
Update ItemOptions and data classes
MarkH817 f5aa550
Update SettingsSection and simplify MinimizationTriangle
MarkH817 a4e381d
Update SettingsEnableDisable component
MarkH817 6c4927f
Convert more settings to Composition API
MarkH817 e50821e
Update Operator login, text size, and toolbar to Composition API
MarkH817 86dadd5
Fix keyword notification to allow all keywords to be removable
MarkH817 8a93ec5
Refactor ColorPicker to stop using anti-patterns
MarkH817 b5b6cda
Add prettier
MarkH817 868351b
Add Pinia and @vueuse/core to migrate stores
MarkH817 fc0721a
Move settings interaction to Pinia store version
MarkH817 36b5369
Update emoticon bar
MarkH817 ebb3fe9
Migrate to Vue 3
MarkH817 b8df195
Add Husky
MarkH817 df4a7e3
Add Oxlint and Vitest
MarkH817 938f414
Add initial stores for chat state tracking and actions
MarkH817 9f90959
Move DraggableDiv component
MarkH817 de083b3
Update irc-framework types
MarkH817 17e84b0
Move puzzle/user data fetching to services directory
MarkH817 8e7e281
Add channel and user list stores
MarkH817 6ec4cb4
Move src/app/assets to src/assets
MarkH817 c77f938
Remove unused types
MarkH817 51c1f1c
Use IRC client's reconnect feature and emitted events
MarkH817 acef402
Add `isInitialized` flag to keep chat visible during reconnection
MarkH817 c72058c
Move connection UI components
MarkH817 f1d85b6
Update reconnection UI components
MarkH817 8ee3464
Add more fields to User model
MarkH817 f3b38dc
Add auto join list variable for debugging
MarkH817 dd66f60
Allow spec files to be next to related files
MarkH817 8c01af9
Update irc-framework types
MarkH817 d478f97
Update UID parser to handle "unverified" identities
MarkH817 e9bec5b
Use message tags data in messages and user colors
MarkH817 5bd7939
Add typing status updates via tagmsg
MarkH817 2cf2c9d
Add Vite legacy-plugin and postcss-preset-env
MarkH817 dd32b37
Add initial command handler placeholders
MarkH817 7023156
Add useMessageGroups composable
MarkH817 59869ec
Prevent notification triggers when replaying chat history
MarkH817 a180ee4
Add date formatting helper
MarkH817 4fd2603
Move markdown parser to utils
MarkH817 37824f4
Add initial channel message components
MarkH817 91e8ba4
Fix Tag type definition
MarkH817 587269b
Add sortedInsert utility for message inserts
MarkH817 ceb2c84
Add message pending status for sent messages
MarkH817 e3b99ac
Remove `writeLine` override for Connection
MarkH817 457a43e
Listen for username color tags on messages
MarkH817 5a95b1a
Move Styles to src/utils
MarkH817 9359cea
Updated channel, user list, and chat stores for better clarity and ch…
MarkH817 c1cd396
Update channel/username regex to also target them at the end of sente…
MarkH817 585cb22
Add subset of operator-only, settings, and user slash-commands
MarkH817 214cf89
Move channel auto-join logic to store
MarkH817 55a86ce
Remove old vxm module
MarkH817 426ad1d
Update DraggableWindow to use responsive layout
MarkH817 a1bf9b5
Save chat window position and size to local storage
MarkH817 8d226fc
Add kick, ban, unban, mute, unmute actions for operators
MarkH817 d5dc393
Update chat layout logic
MarkH817 41329b3
Adjust scroll behavior for sidebar menu and channel messages
MarkH817 f28f000
Split message groups if on different days
MarkH817 051cb6b
Add online users list
MarkH817 ec1cb46
Reopen last active channel upon rejoining
MarkH817 4827c3d
Add channel navigation and fix direct message logic
MarkH817 cd11a4c
Update star button styles
MarkH817 5828b3c
Adjust layout for smaller windows
MarkH817 7bceb69
Add operator side menu section and system messages
MarkH817 25b80a1
Prevent non-operators from joining #ops-notification channel
MarkH817 1e99410
Auto-scroll on received messages
MarkH817 3a28ce7
Adjust banmask check to ignore casing
MarkH817 acc143a
Add `.util` to util file names
MarkH817 cc224f7
Add `.store` to store file names
MarkH817 f33bb57
Add `.model` to model file names
MarkH817 8685931
Remove unused Ban model
MarkH817 53d529b
Add `.const` to constants file names
MarkH817 c4b18b6
Remove `starred` from Message model
MarkH817 454eeb4
Add Report model
MarkH817 7cbddf8
Define report store logic for opening, closing, and submitting from a…
MarkH817 7b4d755
Close menu on Escape
MarkH817 083194e
Fix aria usage for the minimization button
MarkH817 068e956
Add AppModal UI component
MarkH817 d95566d
Add report modal to submit additional comments
MarkH817 cfa73e1
Add message options dropdown to report message
MarkH817 dad0abb
Handle external nickname change
MarkH817 5aa7b22
Update IRC server config to new Ergo instance
MarkH817 a5255f9
Add i flag to username RegEx
MarkH817 e925be3
Cleanup unused types/props
MarkH817 b578dcc
Add notification settings
MarkH817 91cc727
Add labelled by attribute for modals
MarkH817 4b0c33f
Allow keyboards to toggle user popovers
MarkH817 24df882
Track NICKs as lowercase strings
MarkH817 dcb73c2
Update keyword detection to be case-insensitive
MarkH817 de7a657
Add auto-AWAY timeout
MarkH817 965902c
Add away status to settings
MarkH817 b7c9bb2
Add font size to settings
MarkH817 bbe7ed9
Refactor markdown renderer implementation
MarkH817 3facdbf
Add initial logic for puzzle tooltips
MarkH817 b49085a
Display puzzle information
MarkH817 e6189a1
Add external link confirmation
MarkH817 a814757
Navigate on clicking tagged channel in message
MarkH817 985f419
Extract puzzle tooltip into separate component
MarkH817 7b01280
Extract message content rendering into separate component
MarkH817 20cfb8f
Add chat input preview
MarkH817 aff7694
Update to Vite 8
MarkH817 cb59481
Marked message preview as inert
MarkH817 0978f56
Add markdown underline format
MarkH817 dbb91f0
Add chat toolbar
MarkH817 b280116
Add initial markdown format toggle
MarkH817 664f793
Connect keybind to input
MarkH817 1ceab0f
Switch from `renderInline` to `render` in MessageContent
MarkH817 2c71e71
Add help command
MarkH817 6863815
Add ignore/unignore commands and settings section
MarkH817 62a686f
Add ignore/unignore button to message options and player tooltip
MarkH817 d6c6490
Use IRC store directly in login form component
MarkH817 cddd018
Use BSpinner replace loading gif
MarkH817 790ec54
Use v-bind in minimization triangle
MarkH817 58a0328
Reduce default channels and remove channel joining
MarkH817 5d175ba
Add mute/unmute mask commands
MarkH817 eb342dc
Update user related labels/descriptions
MarkH817 a43a5fc
Remove color overriding and legacy nick parsing
MarkH817 5223a1e
Remove page title overriding
MarkH817 d548b44
Remove former `src/app` directory
MarkH817 aa27102
Add dropdown for joining channels
MarkH817 925fe65
Remove ESLint/Prettier and add Oxfmt
MarkH817 cd124ef
Adjust KICK/NOTICE commands if operator is not in channel
MarkH817 2f96951
Simplify message grouping
MarkH817 8bfbb6f
Move max channel messages to setting
MarkH817 1d612b8
Add delay for leaving temporarily joined channels
MarkH817 d26939e
Use LockManager Web API to coordinate notifications
MarkH817 5e09acf
Add web component build
MarkH817 3d4ffab
Update README
MarkH817 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| > 1% | ||
| last 2 versions | ||
| not ie <= 8 | ||
| defaults |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| VUE_APP_SERVER_URL=irc.eternagame.org/chatws/websocket | ||
| VUE_APP_SSL=true | ||
| VITE_APP_SERVER_URL=chat.eternagame.org | ||
| VITE_APP_SSL=true |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 @@ | ||
| npx lint-staged |
This file contains hidden or 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,4 @@ | ||
| { | ||
| "*.{js,vue,ts}": ["oxlint --fix", "eslint --fix"], | ||
| "*.{css,scss,md}": "prettier --write" | ||
| } |
This file contains hidden or 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,10 @@ | ||
| { | ||
| "$schema": "./node_modules/oxlint/configuration_schema.json", | ||
| "plugins": ["eslint", "typescript", "unicorn", "oxc", "vue", "vitest"], | ||
| "env": { | ||
| "browser": true | ||
| }, | ||
| "categories": { | ||
| "correctness": "error" | ||
| } | ||
| } |
This file contains hidden or 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 @@ | ||
| { | ||
| "tabWidth": 2, | ||
| "useTabs": false, | ||
| "singleQuote": true, | ||
| "trailingComma": "all", | ||
| "vueIndentScriptAndStyle": true, | ||
| "prettier.printWidth": 100 | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,26 @@ | ||
| import pluginVitest from '@vitest/eslint-plugin'; | ||
| import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'; | ||
| import pluginOxlint from 'eslint-plugin-oxlint'; | ||
| import prettier from 'eslint-plugin-prettier/recommended'; | ||
| import pluginVue from 'eslint-plugin-vue'; | ||
| import { globalIgnores } from 'eslint/config'; | ||
|
|
||
| export default defineConfigWithVueTs( | ||
| { | ||
| name: 'app/files-to-lint', | ||
| files: ['**/*.{vue,ts,mts,tsx}'], | ||
| rules: { | ||
| 'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
| 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', | ||
| }, | ||
| }, | ||
| globalIgnores(['**/dist/**', '**/coverage/**']), | ||
| ...pluginVue.configs['flat/essential'], | ||
| vueTsConfigs.recommended, | ||
| { | ||
| ...pluginVitest.configs.recommended, | ||
| files: ['src/**/__tests__/*', 'src/**/*.{spec,test}.*'], | ||
| }, | ||
| ...pluginOxlint.buildFromOxlintConfigFile('.oxlintrc.json'), | ||
| prettier, | ||
| ); | ||
This file contains hidden or 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,20 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
| <link rel="icon" href="/favicon.ico" /> | ||
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
| <meta name="viewport" content="width=device-width,initial-scale=1.0" /> | ||
| <title>html-chat</title> | ||
| </head> | ||
| <body> | ||
| <noscript> | ||
| <strong | ||
| >We're sorry but html-chat doesn't work properly without JavaScript | ||
| enabled. Please enable it to continue.</strong | ||
| > | ||
| </noscript> | ||
| <div id="app"></div> | ||
| <script type="module" src="/src/main.ts"></script> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.