-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/include-bools-address
- Loading branch information
Showing
9 changed files
with
76 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ jobs: | |
node-version: 20 | ||
|
||
- name: Install Medusa cli | ||
run: npm i -g @medusajs/cli@preview | ||
run: npm i -g @medusajs/cli@latest | ||
|
||
- name: Create Medusa project | ||
run: | | ||
|
@@ -59,22 +59,22 @@ jobs: | |
working-directory: ../cli-test | ||
|
||
- name: Run migrations | ||
run: medusa db:migrate | ||
run: npx medusa db:migrate | ||
working-directory: ../cli-test | ||
|
||
- name: Create admin user | ||
run: medusa user -e [email protected] -p password -i admin_123 | ||
run: npx medusa user -e [email protected] -p password -i admin_123 | ||
working-directory: ../cli-test | ||
|
||
- name: Run development server | ||
run: medusa develop & | ||
run: npx medusa develop & | ||
working-directory: ../cli-test | ||
|
||
- name: Testing development server | ||
uses: ./.github/actions/test-server | ||
|
||
- name: Starting medusa | ||
run: medusa start & | ||
run: npx medusa start & | ||
working-directory: ../cli-test | ||
|
||
- name: Testing server | ||
|
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export function getBrowser(): | ||
| "Chrome" | ||
| "Safari" | ||
| "Firefox" | ||
| "Internet Explorer" | ||
| "Edge" | ||
| "unknown" { | ||
if (typeof navigator === "undefined") { | ||
return "unknown" | ||
} | ||
|
||
const userAgent = navigator.userAgent.toLowerCase() | ||
|
||
if (userAgent.indexOf("chrome") > -1) { | ||
return "Chrome" | ||
} else if (userAgent.indexOf("safari") > -1) { | ||
return "Safari" | ||
} else if (userAgent.indexOf("firefox") > -1) { | ||
return "Firefox" | ||
} else if ( | ||
userAgent.indexOf("msie") > -1 || | ||
userAgent.indexOf("trident") > -1 | ||
) { | ||
return "Internet Explorer" | ||
} else if (userAgent.indexOf("edge") > -1) { | ||
return "Edge" | ||
} else { | ||
return "unknown" | ||
} | ||
} | ||
|
||
export function getOsShortcut() { | ||
const isMacOs = | ||
typeof navigator !== "undefined" | ||
? navigator.userAgent.toLowerCase().indexOf("mac") !== 0 | ||
: true | ||
|
||
return isMacOs ? "⌘" : "Ctrl" | ||
} |
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