-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Unthrottled/offlineBackgrounds
Offline Backgrounds
- Loading branch information
Showing
10 changed files
with
209 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
import path from 'path'; | ||
import fs from "fs"; | ||
|
||
export const ASSETS_URL = `https://doki.assets.unthrottled.io`; | ||
export const VSCODE_ASSETS_URL = `${ASSETS_URL}/stickers/vscode`; | ||
export const BACKGROUND_ASSETS_URL = `${ASSETS_URL}/backgrounds`; | ||
export const SCREENSHOT_ASSETS_URL = `${ASSETS_URL}/screenshots`; | ||
|
||
|
||
const main = require.main || { filename: 'yeet' }; | ||
export const workbenchDirectory = path.join(path.dirname(main.filename), 'vs', 'workbench'); | ||
|
||
const CODE_SERVER_FILE = 'web.api'; | ||
const getFileName = () => { | ||
return fs.existsSync(path.join(workbenchDirectory, `workbench.desktop.main.css`)) ? | ||
'desktop.main' : CODE_SERVER_FILE; | ||
}; | ||
|
||
const fileName = getFileName(); | ||
|
||
export const editorCss = path.join(workbenchDirectory, `workbench.${fileName}.css`); | ||
export const editorCssCopy = path.join(workbenchDirectory, `workbench.${fileName}.css.copy`); | ||
|
||
export const isCodeServer = () => fileName === CODE_SERVER_FILE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.