]> Untitled Git - lemmy.git/commitdiff
Remove `/u/` and `/c/` schemes from UI
authorAzriel Lector <azriel.liang@gmail.com>
Wed, 29 Jul 2020 03:16:27 +0000 (11:16 +0800)
committerAzriel Lector <azriel.liang@gmail.com>
Wed, 29 Jul 2020 03:16:27 +0000 (11:16 +0800)
.gitignore
ui/src/components/community.tsx
ui/src/components/inbox.tsx
ui/src/components/user.tsx

index 236a729eb05f97bf7ade4a0f8a904c491905039f..6ae0ae1935606bd725bebea231f30b0e6437acc1 100644 (file)
@@ -16,3 +16,5 @@ ui/src/translations
 
 # ide config
 .idea/
+
+target
index e1e747ae4b9476206044295ffda3359445564613..b29a3b4a3b2ed8c2e3f383ce9a548957d8782460 100644 (file)
@@ -177,7 +177,7 @@ export class Community extends Component<any, State> {
 
   get documentTitle(): string {
     if (this.state.community.name) {
-      return `/c/${this.state.community.name} - ${this.state.site.name}`;
+      return `!${this.state.community.name} - ${this.state.site.name}`;
     } else {
       return 'Lemmy';
     }
index 5fe8a650f7b04040c8f7727a0516931ba27e0d8a..927fee24ceebbc2b27d528685edf73b8548efa3e 100644 (file)
@@ -112,7 +112,7 @@ export class Inbox extends Component<any, InboxState> {
 
   get documentTitle(): string {
     if (this.state.site.name) {
-      return `/u/${UserService.Instance.user.name} ${i18n.t('inbox')} - ${
+      return `@${UserService.Instance.user.name} ${i18n.t('inbox')} - ${
         this.state.site.name
       }`;
     } else {
@@ -206,7 +206,7 @@ export class Inbox extends Component<any, InboxState> {
     return (
       <div class="btn-group btn-group-toggle">
         <label
-          className={`btn btn-outline-secondary pointer 
+          className={`btn btn-outline-secondary pointer
             ${this.state.messageType == MessageType.All && 'active'}
           `}
         >
@@ -219,7 +219,7 @@ export class Inbox extends Component<any, InboxState> {
           {i18n.t('all')}
         </label>
         <label
-          className={`btn btn-outline-secondary pointer 
+          className={`btn btn-outline-secondary pointer
             ${this.state.messageType == MessageType.Replies && 'active'}
           `}
         >
@@ -232,7 +232,7 @@ export class Inbox extends Component<any, InboxState> {
           {i18n.t('replies')}
         </label>
         <label
-          className={`btn btn-outline-secondary pointer 
+          className={`btn btn-outline-secondary pointer
             ${this.state.messageType == MessageType.Mentions && 'active'}
           `}
         >
@@ -245,7 +245,7 @@ export class Inbox extends Component<any, InboxState> {
           {i18n.t('mentions')}
         </label>
         <label
-          className={`btn btn-outline-secondary pointer 
+          className={`btn btn-outline-secondary pointer
             ${this.state.messageType == MessageType.Messages && 'active'}
           `}
         >
index 7a706235f4d26c817fbacb8ea53b8f2fa65b0973..89e8253987d95ffc159d0f111b6bd2750c38c596 100644 (file)
@@ -213,7 +213,7 @@ export class User extends Component<any, UserState> {
 
   get documentTitle(): string {
     if (this.state.siteRes.site.name) {
-      return `/u/${this.state.username} - ${this.state.siteRes.site.name}`;
+      return `@${this.state.username} - ${this.state.siteRes.site.name}`;
     } else {
       return 'Lemmy';
     }
@@ -234,7 +234,7 @@ export class User extends Component<any, UserState> {
                   class="rounded-circle mr-2"
                 />
               )}
-              <span>/u/{this.state.username}</span>
+              <span>@{this.state.username}</span>
             </h5>
             {this.state.loading ? (
               <h5>
@@ -276,7 +276,7 @@ export class User extends Component<any, UserState> {
     return (
       <div class="btn-group btn-group-toggle">
         <label
-          className={`btn btn-outline-secondary pointer 
+          className={`btn btn-outline-secondary pointer
             ${this.state.view == UserDetailsView.Overview && 'active'}
           `}
         >
@@ -289,7 +289,7 @@ export class User extends Component<any, UserState> {
           {i18n.t('overview')}
         </label>
         <label
-          className={`btn btn-outline-secondary pointer 
+          className={`btn btn-outline-secondary pointer
             ${this.state.view == UserDetailsView.Comments && 'active'}
           `}
         >
@@ -302,7 +302,7 @@ export class User extends Component<any, UserState> {
           {i18n.t('comments')}
         </label>
         <label
-          className={`btn btn-outline-secondary pointer 
+          className={`btn btn-outline-secondary pointer
             ${this.state.view == UserDetailsView.Posts && 'active'}
           `}
         >
@@ -315,7 +315,7 @@ export class User extends Component<any, UserState> {
           {i18n.t('posts')}
         </label>
         <label
-          className={`btn btn-outline-secondary pointer 
+          className={`btn btn-outline-secondary pointer
             ${this.state.view == UserDetailsView.Saved && 'active'}
           `}
         >
@@ -398,7 +398,7 @@ export class User extends Component<any, UserState> {
                 </tr>
                 */}
                 <tr>
-                  {/* 
+                  {/*
                   <td>
                     {i18n.t('number_of_points', { count: user.post_score })}
                   </td>
@@ -406,7 +406,7 @@ export class User extends Component<any, UserState> {
                   <td>
                     {i18n.t('number_of_posts', { count: user.number_of_posts })}
                   </td>
-                  {/* 
+                  {/*
                 </tr>
                 <tr>
                   <td>