mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 07:25:35 +00:00
refactor: split backend by context instead of type 'controllers/models/...'
This commit is contained in:
19
app/core/constants/keys.ts
Normal file
19
app/core/constants/keys.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
const OPEN_SEARCH_KEY = 's';
|
||||
const ESCAPE_KEY = 'escape';
|
||||
|
||||
const OPEN_CREATE_LINK_KEY = 'l';
|
||||
const OPEN_CREATE_COLLECTION_KEY = 'c';
|
||||
|
||||
const ARROW_UP = 'ArrowUp';
|
||||
const ARROW_DOWN = 'ArrowDown';
|
||||
|
||||
const KEYS = {
|
||||
ARROW_DOWN,
|
||||
ARROW_UP,
|
||||
ESCAPE_KEY,
|
||||
OPEN_CREATE_COLLECTION_KEY,
|
||||
OPEN_CREATE_LINK_KEY,
|
||||
OPEN_SEARCH_KEY,
|
||||
};
|
||||
|
||||
export default KEYS;
|
||||
8
app/core/constants/paths.ts
Normal file
8
app/core/constants/paths.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
const PATHS = {
|
||||
AUTHOR: 'https://www.sonny.dev/?utm_source=mylinks',
|
||||
REPO_GITHUB: 'https://github.com/Sonny93/my-links',
|
||||
EXTENSION:
|
||||
'https://chromewebstore.google.com/detail/mylinks/agkmlplihacolkakgeccnbhphnepphma',
|
||||
} as const;
|
||||
|
||||
export default PATHS;
|
||||
Reference in New Issue
Block a user