-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add React 19 support * refactor: update SCSS imports to use @use syntax and improve test snapshots * fix pipeline * chore: update version to v1.4.5 and remove npm-install-peers from workflow * chore: add tslib dependency version 2.8.1 to package.json and update yarn.lock * chore: update GitHub Actions to use latest versions of checkout, setup-node, and cache actions * chore: add @testing-library/dom dependency version 10.4.0 to package.json and update yarn.lock * fix codecov --------- Co-authored-by: Konstantin Nikolaev <[email protected]>
- Loading branch information
1 parent
6f88d6d
commit b0851cf
Showing
15 changed files
with
3,270 additions
and
5,776 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
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,8 +1,14 @@ | ||
import { UAParser } from 'ua-parser-js'; | ||
|
||
export default class Utils { | ||
static splitStringAtIndex(value: string, index: number) { | ||
if (!value) { | ||
return ["", ""]; | ||
} | ||
return [value.substring(0, index), value.substring(index)]; | ||
} | ||
static isMobile(): boolean { | ||
const { device } = UAParser(window.navigator.userAgent); | ||
return device.is('mobile'); | ||
} | ||
} |
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
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,5 +1,5 @@ | ||
@import "./styles/variables.scss"; | ||
@import "./styles/fonts.scss"; | ||
@import "./styles/controls.scss"; | ||
@import "./styles/editor.scss"; | ||
@import "./styles/terminal.scss"; | ||
@use "./styles/variables.scss"; | ||
@use "./styles/fonts.scss"; | ||
@use "./styles/controls.scss"; | ||
@use "./styles/editor.scss"; | ||
@use "./styles/terminal.scss"; |
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.