-
Notifications
You must be signed in to change notification settings - Fork 5
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
1.0.0 #307
Closed
1.0.0 #307
Changes from 2 commits
Commits
Show all changes
196 commits
Select commit
Hold shift + click to select a range
ae1a65b
Clarify mentions in API spec
bates64 c89e0a4
Move mentions to its own endpoint
bates64 0cda121
Use unix time for dates; add dots/periods to valid name spec
bates64 02f89f6
Remove 'authorization' and user.permissionLevel in favour of roles
bates64 cb78453
Add permission list and color constants
bates64 9edc12d
Add roles
bates64 2f8ac2b
Style permission spoilers better
bates64 88999b5
Convert errors into table and change some
bates64 84c4f3f
Restructure entire document
bates64 c78ca73
Unix time is not a year old
bates64 bcfcd1f
Use headers where appropriate
bates64 1533d4d
Add system messages
bates64 f443fac
Add delete-user endpoint
bates64 e13d246
Add MANAGE_USERS permission
bates64 b7685a5
Merge UPDATE_OTHERS and MANAGE_USERS
bates64 6ea2a4c
Fix typo
bates64 a57b7f9
Do permissions my way
towerofnix 20624ac
Tweak the rest of the docs to my permission system
towerofnix 931adf5
Put permission docs into their own section
towerofnix 2aec9db
Move permissions object getting to /users/:id/permissions
towerofnix 5879064
Clarify that emote shortcodes are ALWAYS unique
towerofnix 7da9163
Fix '{GET' typo
towerofnix d880b53
Remove messages.reactions; add messages.pinned
bates64 ac433d3
Re-add message/delete
bates64 7788636
Add endpoints for updating channel-specific role permissions
towerofnix 29d6610
Change role.name to name, not string
towerofnix b33db17
Revert "Change role.name to name, not string"
towerofnix 6b8ac12
Add back emote/* events
bates64 0bfe65d
Add serverSettings.iconURL & server setting update event
bates64 ac50bbc
Make emote shortcodes strings
towerofnix 60af343
Be more specific about special role IDs
towerofnix bb0085a
Merge pull request #275 from decent-chat/permissions-spec-2
7d51893
POST -> PATCH /api/settings
bates64 4045fdb
Add sendSystemMessages permission
bates64 294d941
Delete packages/client/src/
bates64 19faf5d
Merge branch 'master' into preact
bates64 bbdfe64
Setup Preact build steps, add PostCSS autoprefixer
bates64 3ad227f
Add FF to browserslist
bates64 8c44d7a
Support all browser versions released in the last year
bates64 8736f56
Add server dropdown
bates64 a58d94a
Add basic channel list and modals
PullJosh 7eb0d0a
Track UI state per-server; use new per-server UI state to track activ…
PullJosh 7499c4f
Fix codestyle
bates64 d7c991e
Use portals for modals
bates64 5f5fe7d
Add semi-functional UserList. Still need to make it auto-update!
PullJosh 26f21a6
Refactor modals
bates64 3097881
Merge branch 'preact-user-list' into preact
bates64 4c70d31
Fix crash oops
bates64 4de92e0
Close modals when clicking behind them
bates64 f576c48
Add <Icon>
bates64 72ffa93
Add server pool
bates64 9fbabd4
Add current user status; need client + pool event for login/out
PullJosh 02bbeb4
Add decent.js Client login/logout events
bates64 2a29df9
Add decent.js client.register()
bates64 7a3d416
Add login/logout to client
bates64 548a446
Use a <Modal.Async/> for join server modal
bates64 9b5e459
Use --no-bg 'Cancel' buttons
bates64 c22b2a9
Remove 'logged in as <username>' extra spacing
bates64 350933f
Horizontal bar loading for modals
PullJosh cc31b06
Merge branch 'preact' of github.com:decent-chat/decent into preact
PullJosh 7d56916
Add disconnected toast
bates64 5efc3d2
Merge remote-tracking branch 'origin/preact' into preact
bates64 0f1f507
Use Preact's debug mode in development
bates64 ce7be29
Add initial message scroller
bates64 e7e7f4e
Fix timeago
PullJosh b4120d6
Listen for messages
bates64 28876e2
Merge remote-tracking branch 'origin/preact' into preact
bates64 6f07f4d
Add scrollback/forward
bates64 49e28b2
Add message action handlers
bates64 d98bcd7
Fix new message receiving
bates64 aef2e5f
Allow sending messages (add MessageEditor)
PullJosh 645d369
Bump message scroller max length to 50 messages
bates64 bffedba
Fix seeing double
bates64 0a49935
Clean up message editor
bates64 9a70207
First attempt at image uploads. Paging @heyitsmeuralex to investigate.
PullJosh 4920113
Merge in work from alex
PullJosh 7d44acd
Maybe fix scrolledToBottom detection a bit
bates64 a1e8c3b
Merge remote-tracking branch 'origin/preact' into preact
bates64 1c1b262
Remove rogue var self = this
bates64 4b9471c
Fix client.uploadImage
bates64 892e183
Display progress bar for image uploading
bates64 670a946
Clarify sessions and permissions, add REPEATED_PARAMETERS
bates64 4d0780c
Move server properties to /api
bates64 57a3a72
Make addition of messages at top/bottom of list be completely seamless
PullJosh 831b5d8
Make textarea better
bates64 a273eb0
Merge remote-tracking branch 'origin/preact' into preact
bates64 ee4b36c
Make modal close button visible
PullJosh fab6e8c
Fix message editor textarea autosizing bugs
bates64 eb67ec1
Fix <Modal/> bugs
bates64 d39c6b5
Implement message image upload button
bates64 b29b8af
Reorganize components to be infinitely nestable
PullJosh df290c6
Greatly simplify require(..) calls using a custom Babel plugin
bates64 c81263f
Merge pull request #292 from decent-chat/organize-components
287697f
Fix <InfiniteScroll/>
bates64 8abad5b
Add 'npm run serve'
bates64 aa965b4
Fix message editor sizing once again
bates64 7e772ae
Listen for message deletion
bates64 e37d83f
Always show top bar of Messages component, even while loading.
PullJosh bf8731d
Implement unix timestamps
towerofnix bed7356
Add type property to messages
towerofnix 9dbc0bf
Merge remote-tracking branch 'origin/impl-1.0.0-msg-types' into 1.0.0
bates64 0e4d69c
Merge remote-tracking branch 'origin/impl-1.0.0-dates' into 1.0.0
bates64 e97d42d
Merge branch 'master' into 1.0.0
towerofnix 0c79973
Change iconURL -> iconPath, POST settings -> PATCH, add WS event
towerofnix a7926eb
Remove /api/properties, add useSecureProtocol, tests
towerofnix c670294
Make client not fetch /api/properties
towerofnix 0166356
Change iconPath back to iconURL
towerofnix 1156cab
Merge pull request #298 from decent-chat/impl-1.0.0-settings
564ff16
Use dateEdited and dateCreated for messages
bates64 5c92209
Store millisecond-accurate dates
bates64 cb49dbd
Don't floor datetime values
bates64 9cc8a25
Merge pull request #299 from decent-chat/impl-1.0.0-better-dates
towerofnix 63769d7
Remove auth stuff; add POST /api/roles
towerofnix 62d6235
Add GET /api/roles
towerofnix 23fdcc4
More role stuff
towerofnix 88dd96f
Add more tests; require role names to be at least one char
towerofnix 716f932
Add DELETE /api/roles/:id
towerofnix b1a3804
Be more strict about what can be done to internal and guest roles
towerofnix 107bb94
Be more strict in validate.permissionsObject; add test for it
towerofnix d4bd6d2
Very very very begin user permissions
towerofnix c840130
Fun documentation edits
towerofnix 610c6f7
Tweaks and things
towerofnix 7536b0a
Get rid of lots and lots of authorized stuff; add lots and lots of ro…
towerofnix e7b6f15
Remove AUTHORIZATION_ERROR & mention of auth in docs
towerofnix ebb1483
Add doc notes regarding role pri. order
towerofnix 7d700cf
Get rid of _owner; clean up other things
towerofnix 7b800a5
Implement Owner role in a much saner way
towerofnix 7e44132
Update make-admin CLI command
towerofnix 873bf7c
Begin work on permissions actually doing stuff
towerofnix e98a97d
Add a test, fix another test
towerofnix 46f7709
In makeChannel test util, don't reference old makeAdmin function
towerofnix c3353cd
Change everything, make channel API use permissions
towerofnix e33ea83
Clean up channel test code
towerofnix dee962a
Make emote API use permissions
towerofnix be5ffe3
Generally update PATCH /api/settings
towerofnix 5706cee
Deupdate PATCH /api/settings
towerofnix 4c373b2
Restore NOT_ALLOWED, sorry!!!
towerofnix 3f0ab60
Fix typo in api.md
towerofnix c7a2da4
Typecheck all the things
towerofnix 74fad67
Use cleaner typechecking in settings area
towerofnix beb43da
Update messages API to use permissions
towerofnix e0c1644
Update to work with 1.0.0 servers
bates64 2387565
Fix package.json except @decent/server's
bates64 1da28ee
Delete packages/client/src/
bates64 e474d88
Merge 'preact' into '1.0.0'
bates64 ab23c57
Bump all packages to v1.0.0
bates64 a896288
Merge remote-tracking branch 'origin/impl-1.0.0-permissions-roles' in…
bates64 ec745f9
Add null states + various fixes
bates64 fcc68a0
Fix some things, rename 'Owner' role to 'Admin' and change semantics
bates64 ef20068
Add dark theme back, some design tweaks
bates64 0a45d64
Use Gravatar (fix #305) and fix all broken tests
bates64 d62d668
Use a 16-color scheme everywhere
bates64 c71abae
Major design changes
bates64 f7839b6
Fix create channel button
bates64 f0207c1
Fix decent.js Channel#getMessages typecheck issue
bates64 2dd946c
Fix <Toast> styling
bates64 dc43009
Use glob postcss imports
bates64 aed78b7
Move CSS files around, small tweaks, add modal/dropdown animations
bates64 8c3a475
Add inline message editing (resolves #115)
bates64 244e2a1
Fix issue where message actions didn't appear after login
bates64 e6669f4
Fix some bugs
bates64 1d729e5
Eagerly load more messages before the actual top/bottom is reached
bates64 9c3dff2
Add unread badges + document.title
bates64 82e5267
Disable reactions endpoint
towerofnix 47be90d
Kill api.md in favor of decent-chat/spec
towerofnix 0c0e1d0
Add util functions for future role/permission stuff + tests
towerofnix 23f0ef1
Remove _guest role
towerofnix 4e53290
decent.js: add Roles
bates64 2494a32
Merge remote-tracking branch 'origin/1.0.0' into 1.0.0
bates64 5ca5b32
Add user popups
bates64 d9b9d69
Persist server list between page refreshes
bates64 6c81fe3
Fix potential activeServer bug
bates64 1db077f
Add GET /api/users/:id/roles
towerofnix db52179
WIP POST user roles -- middleware stuff, improve error messages
towerofnix 3950fe3
WIP POST user roles -- start fleshing endpoint
towerofnix 2c03e0c
Finish POSTing user roles
towerofnix b506b6c
Add DELETE /users/:userID/roles/:roleID
towerofnix 48fa062
Add disconnected server UI
bates64 797e82a
Merge remote-tracking branch 'origin/1.0.0' into 1.0.0
bates64 a0c5e30
Remove logs
bates64 9f9acc5
Fix client - never mistakenly set the active server to -1
bates64 f28b573
Fix broken 'connect to server' modal
bates64 8a20f59
Add build:favicon
bates64 5d1bc61
Delete messages when edited to have no content
bates64 7d5842d
WIP - channel permissions
towerofnix b610193
Merge branch '1.0.0' of https://github.com/decent-chat/decent into 1.0.0
towerofnix fdfd7e6
Add getHighestRoleOfUser util function
towerofnix 93b5d26
Update the way new roles are prioritized per spec
towerofnix 898ddab
Don't allow reordering roles above own highest role
towerofnix 566f20f
Test for manageRoles permission check
towerofnix dd306ae
Don't let roles be reordered such that you lose manageRoles
towerofnix 8a9ee82
Make POST /api/roles match spec
towerofnix 9bcea5c
Woops, also check for manageRoles
towerofnix 8759e21
Add support for system messages to server & decent.js
bates64 3eb30c4
Remove authorFlair from messages to match spec
bates64 97031c7
Serialize system messages properly
bates64 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
um
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WIP, of course.