Fully support auth in Web UI; persist users in localStorage (for now); add ugly ?auth=... param

This commit is contained in:
Philipp Heckel
2022-02-25 23:25:04 -05:00
parent 6d343c0f1a
commit 530f55c234
16 changed files with 237 additions and 72 deletions

View File

@@ -1,6 +1,6 @@
import {shortTopicUrl, topicUrl} from './utils';
import {topicShortUrl, topicUrl} from './utils';
export default class Subscription {
class Subscription {
constructor(baseUrl, topic) {
this.id = topicUrl(baseUrl, topic);
this.baseUrl = baseUrl;
@@ -40,6 +40,8 @@ export default class Subscription {
}
shortUrl() {
return shortTopicUrl(this.baseUrl, this.topic);
return topicShortUrl(this.baseUrl, this.topic);
}
}
export default Subscription;