jeff
2738de85db
Remove extern crate for serde serialize
2021-01-15 20:34:06 +00:00
jeff
92c402e254
Switch all existing API requests to use new CharacterIdentifier stuff.
2021-01-12 22:01:17 +00:00
jeff
69d9d7ff80
Use Cow in favor of take.
2021-01-12 20:44:26 +00:00
jeff
6c1d19aa44
Rename 'or_default' to 'extract'. Better meaning.
2021-01-10 20:54:05 +00:00
jeff
5ea5d627bb
Implement rest of basic info editing.
2021-01-10 20:45:15 +00:00
jeff
ae6d5bcfa3
Implement updating basic info for character name.
2021-01-10 20:45:15 +00:00
jeff
ffe4f9298c
Create "character identifier" type for use in all API requests.
...
Will replace the character_username and character_id values in all
relevant requests.
2021-01-10 20:45:15 +00:00
jeff
ea4723cbe5
Add API endpoint for updating basic character info.
2021-01-10 13:56:44 +00:00
jeff
c42f13af52
Remove unused REST semantics from cofd API.
2021-01-09 20:02:24 +00:00
jeff
e6845d8c7a
Fix webpack publicPath to match server route.
2021-01-09 19:41:57 +00:00
jeff
9ca1f989c5
Move cofd api endpoints into their own file
2021-01-09 19:39:35 +00:00
jeff
31091fcb8e
Update license in package.json to AGPL
2021-01-09 19:29:47 +00:00
jeff
d6944cd4c1
Adjust webpack config slightly for better generation.
2021-01-09 13:32:08 +00:00
jeff
f249ab2674
Rename static directory to generated
2021-01-09 13:03:07 +00:00
jeff
bf75b84f3d
Remove old comments in edit character script.
2021-01-09 12:59:11 +00:00
jeff
06dc6c1274
Move typescript into source tree.
2021-01-09 12:57:13 +00:00
jeff
133b4e6236
Implement a bit more of the view character template.
2021-01-05 21:42:38 +00:00
jeff
2008b90cba
Remove more unneeded things
2021-01-05 21:33:21 +00:00
jeff
3fc9378f50
Clean up files and remove things that no longer need to exist.
2021-01-05 21:25:26 +00:00
jeff
dd2741a0c1
Return semi-proper values from the protobuf HTTP API
2021-01-05 21:19:47 +00:00
jeff
dcbf801ecc
Reimplement attribute updtaes
2021-01-05 19:32:03 +00:00
jeff
af01a56907
WIP on reimplementing edit character script with typescript
2021-01-04 22:36:52 +00:00
jeff
06262e6ad3
Compiles, assuming the user id will be in grpc metadata from auth interceptor.
2021-01-03 23:18:36 +00:00
jeff
592c925bc1
WIP - at a crossroads where we need some kind of auth mechanism
2021-01-03 22:05:28 +00:00
jeff
f479da9001
Add readme instructions, run proxy command.
2021-01-03 21:24:52 +00:00
jeff
06954caaaf
Successful (but very manual) grpc-web requests.
2021-01-03 20:42:54 +00:00
jeff
c99a41bcbd
Run npm commands for building in build.rs
2021-01-03 14:07:11 +00:00
jeff
41a8514c00
Move typescript stuff to static/scripts
2021-01-03 13:46:40 +00:00
jeff
ab274de581
Move templates into src
2021-01-03 13:37:55 +00:00
jeff
96baba6a50
Serve templated templates with webpack-compiled JS injected.
2021-01-03 13:36:53 +00:00
jeff
e384370e24
Add some working typescript code that imports manually compiled protos.
2021-01-02 23:11:09 +00:00
jeff
e601ae0149
Experimenting with tonic
2021-01-02 22:32:17 +00:00
jeff
cb92ffe3df
Remove un-needed 'resources' functions.
2021-01-02 22:12:43 +00:00
jeff
76c67425b1
RPC-ify update attribute API.
2021-01-02 22:11:58 +00:00
jeff
9968cc4a6e
Update skill value as rpc API (though not grpc)
2021-01-02 22:11:58 +00:00
jeff
d1e29b40ed
Implement updating skills.
2021-01-02 22:11:58 +00:00
jeff
b467c32acb
Switch to oneof field for game-specific information and values.
...
Having specific protobuf types for different game systems using the
same rule set (e.g. all the Chronicles of Darkness games) is untenable
because protobuf does not have inheritance or mixins.
Instead, we have one generic character sheet type, with a oneof field
for the game specifics. This will be used in conjunction with the
character's game system (stored in db) to render different stuff on
the character templates.
Without this, we'd wind up having duplicate templates, a lot more code
for handling specifics of each game system, and so on.
2021-01-01 23:34:50 +00:00
jeff
14863353f0
Remove versioning from data type enum members
2021-01-01 22:56:41 +00:00
jeff
2cb547e16a
Implement updating skills on the backend.
2021-01-01 00:40:48 +00:00
jeff
322e13108a
Update cargo dependencies.
2020-12-31 22:32:32 +00:00
jeff
2b7f9b8897
Add ability to edit changeling characters.
2020-12-31 22:28:00 +00:00
jeff
06c8289eae
Add skills to the character editor.
2020-12-31 22:21:05 +00:00
jeff
06b3e0b390
Skip loading owner of character for API.
2020-12-31 20:19:45 +00:00
jeff
c99c7af369
Update readme for SQLx.
2020-12-31 14:11:28 +00:00
jeff
574ab543e5
Add ability to pass in custom database path.
2020-12-31 14:11:28 +00:00
jeff
f572a9c493
Move migrations to refinery + barrel, enable 'offline' sqlx query checking
2020-12-31 14:11:28 +00:00
jeff
717ab0677b
Convert load user queries to compile-checked
2020-12-31 14:11:28 +00:00
jeff
ed9b7c1a81
Clear out unused imports in db.rs
2020-12-31 14:11:28 +00:00
jeff
b443f28a50
Use sqlx result in db.rs
2020-12-31 14:11:28 +00:00
jeff
769512f357
Convert character db methods to compile-checked queries
2020-12-31 14:11:28 +00:00