stash
This commit is contained in:
parent
8d96bc97c4
commit
ed04d98bf1
54 changed files with 661 additions and 1214 deletions
|
|
@ -77,10 +77,7 @@ const EXAMPLES = [
|
|||
{kind: 'workflow', owner_identity_id: 2, workflow_id: 9},
|
||||
];
|
||||
|
||||
// Debug-only display helper, kept out of short-id.js's production library: mirrors its bit-packing
|
||||
// rules (2-bit kind tag with an all-ones escape, 4-bit continuation chunks, see
|
||||
// docs/handles-and-shortids.md) just to show them, recomputed straight from an already-serialized
|
||||
// `ints` list rather than re-parsing a token.
|
||||
// Debug-only mirror of short-id.js's bit-packing (2-bit kind tag + 4-bit chunks, see docs/handles-and-shortids.md), recomputed from `ints` for display only.
|
||||
const KIND_TAG_BITS = 2;
|
||||
const CHUNK_BITS = 4;
|
||||
const DIRECT_KIND_COUNT = 2 ** KIND_TAG_BITS - 1;
|
||||
|
|
@ -159,10 +156,7 @@ export default {
|
|||
}
|
||||
},
|
||||
watch: {
|
||||
// expandedRoute reads Vuex getters derived from state.idmap (see buildExpandedRoute in
|
||||
// router.js), so it re-evaluates on its own once fetchIdMap resolves below - this just
|
||||
// catches that and finishes the redirect the router's own (synchronous, can't-await)
|
||||
// redirect couldn't.
|
||||
// expandedRoute re-evaluates once fetchIdMap resolves (see buildExpandedRoute in router.js); finishes the redirect the router's synchronous guard couldn't.
|
||||
expandedRoute(url) {
|
||||
if (url) {
|
||||
this.$router.replace(url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue