about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/utils/backend_links.js
blob: d0ae6341965800565c7a68262a4f69938dbe4252 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export const preferencesLink = '/settings/preferences';
export const profileLink = '/settings/profile';
export const signOutLink = '/auth/sign_out';
export const privacyPolicyLink = '/privacy-policy';
export const accountAdminLink = (id) => `/admin/accounts/${id}`;
export const statusAdminLink = (account_id, status_id) => `/admin/accounts/${account_id}/statuses?id=${status_id}`;
export const filterEditLink = (id) => `/filters/${id}/edit`;
export const relationshipsLink = '/relationships';
export const securityLink = '/auth/edit';
export const preferenceLink = (setting_name) => {
  switch (setting_name) {
  case 'user_setting_expand_spoilers':
  case 'user_setting_disable_swiping':
    return `/settings/preferences/appearance#${setting_name}`;
  default:
    return preferencesLink;
  }
};