]> Untitled Git - lemmy.git/commitdiff
Fixing GetSite
authorDessalines <tyhou13@gmx.com>
Wed, 12 Jun 2019 01:41:01 +0000 (18:41 -0700)
committerDessalines <tyhou13@gmx.com>
Wed, 12 Jun 2019 01:41:01 +0000 (18:41 -0700)
- Fixes #171

docs/goals.md
server/src/api/site.rs
ui/package.json
ui/src/services/WebSocketService.ts
ui/yarn.lock

index 0d92ab657643e2d43dfb88fdb8d353cddce317da..7ec3c4905f7047c58971f3471bf3664ae10c990c 100644 (file)
@@ -23,7 +23,7 @@
 - [Activitypub main](https://www.w3.org/TR/activitypub/)
 - [Diesel to Postgres data types](https://kotiri.com/2018/01/31/postgresql-diesel-rust-types.html)
 - [helpful diesel examples](http://siciarz.net/24-days-rust-diesel/)
-- [Mastodan public key server example](https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/)
+- [Mastodon public key server example](https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/)
 - [Recursive query for adjacency list for nested comments](https://stackoverflow.com/questions/192220/what-is-the-most-efficient-elegant-way-to-parse-a-flat-table-into-a-tree/192462#192462)
 - https://github.com/sparksuite/simplemde-markdown-editor
 - [Markdown-it](https://github.com/markdown-it/markdown-it)
 - [RES expando - Possibly make this into a switching react component.](https://github.com/honestbleeps/Reddit-Enhancement-Suite/tree/d21f55c21e734f47d8ed03fe0ebce5b16653b0bd/lib/modules/hosts)
 - [Temp Icon](https://www.flaticon.com/free-icon/mouse_194242)
 - [Rust docker build](https://shaneutt.com/blog/rust-fast-small-docker-image-builds/)
+- [Zurb mentions](https://github.com/zurb/tribute)
 - Activitypub guides
   - https://blog.joinmastodon.org/2018/06/how-to-implement-a-basic-activitypub-server/
   - https://raw.githubusercontent.com/w3c/activitypub/gh-pages/activitypub-tutorial.txt
   - https://github.com/tOkeshu/activitypub-example
+  - https://blog.joinmastodon.org/2018/07/how-to-make-friends-and-verify-requests/
 
index 03ee90ff19a9ca415dd7ca56c17b8cad3378d53f..31541168903e7da8da209c8e64459f7f2b9cbe45 100644 (file)
@@ -64,8 +64,7 @@ pub struct EditSite {
 }
 
 #[derive(Serialize, Deserialize)]
-pub struct GetSite {
-}
+pub struct GetSite;
 
 #[derive(Serialize, Deserialize)]
 pub struct SiteResponse {
index 6bf41555849b4da169fabe5e7dafb87d73f1ae22..20ecdd82aa5a02e2cae1d828e4150228c0ec59b0 100644 (file)
@@ -31,7 +31,8 @@
     "markdown-it-container": "^2.0.0",
     "moment": "^2.24.0",
     "rxjs": "^6.4.0",
-    "terser": "^3.17.0"
+    "terser": "^3.17.0",
+    "ws": "^7.0.0"
   },
   "devDependencies": {
     "fuse-box": "^3.1.3",
index 2fa8a4855fdb6215c7bd3f3d3abdc03d345c2ad2..4cb3a262d423bd105a12e32672021ac5b5a097b4 100644 (file)
@@ -170,7 +170,7 @@ export class WebSocketService {
   }
 
   public getSite() {
-    this.subject.next(this.wsSendWrapper(UserOperation.GetSite, {}));
+    this.subject.next(this.wsSendWrapper(UserOperation.GetSite, undefined);
   }
 
   public search(form: SearchForm) {
index 074c106da07e27af72f76e5357773a2216ba28cb..8b8b8361c4892fa619a6410eba0a8c46cab24c2b 100644 (file)
@@ -224,6 +224,11 @@ async-each@^1.0.0:
   resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf"
   integrity sha512-z/WhQ5FPySLdvREByI2vZiTWwCnF0moMJ1hK9YQwDTHKh6I7/uSckMetoRGb5UBZPC1z0jlw+n/XCgjeH7y1AQ==
 
+async-limiter@^1.0.0:
+  version "1.0.0"
+  resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8"
+  integrity sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==
+
 asynckit@^0.4.0:
   version "0.4.0"
   resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
@@ -2855,6 +2860,13 @@ ws@^1.1.1:
     options ">=0.0.5"
     ultron "1.0.x"
 
+ws@^7.0.0:
+  version "7.0.0"
+  resolved "https://registry.yarnpkg.com/ws/-/ws-7.0.0.tgz#79351cbc3f784b3c20d0821baf4b4ff809ffbf51"
+  integrity sha512-cknCal4k0EAOrh1SHHPPWWh4qm93g1IuGGGwBjWkXmCG7LsDtL8w9w+YVfaF+KSVwiHQKDIMsSLBVftKf9d1pg==
+  dependencies:
+    async-limiter "^1.0.0"
+
 yallist@^3.0.0, yallist@^3.0.2:
   version "3.0.3"
   resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.0.3.tgz#b4b049e314be545e3ce802236d6cd22cd91c3de9"