-
Notifications
You must be signed in to change notification settings - Fork 0
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 #45 from hicsail/feature/video-popup
Allow video popup dialog to fetch from backend url
- Loading branch information
Showing
27 changed files
with
901 additions
and
304 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 |
---|---|---|
@@ -1,17 +1,14 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true | ||
node: true, | ||
}, | ||
'extends': [ | ||
'plugin:react/recommended', | ||
'eslint:recommended' | ||
], | ||
extends: ["plugin:react/recommended", "eslint:recommended"], | ||
parserOptions: { | ||
ecmaVersion: 2020 | ||
ecmaVersion: 2020, | ||
}, | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
} | ||
} | ||
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off", | ||
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", | ||
}, | ||
}; |
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,3 @@ | ||
{ | ||
"recommendations": [ | ||
"ionic.ionic" | ||
] | ||
"recommendations": ["ionic.ionic"] | ||
} |
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,12 +1,12 @@ | ||
import { CapacitorConfig } from '@capacitor/cli'; | ||
import { CapacitorConfig } from "@capacitor/cli"; | ||
|
||
const config: CapacitorConfig = { | ||
appId: 'io.ionic.starter', | ||
appName: 'cycm-ionic', | ||
webDir: 'dist', | ||
appId: "io.ionic.starter", | ||
appName: "cycm-ionic", | ||
webDir: "dist", | ||
server: { | ||
androidScheme: 'https' | ||
} | ||
androidScheme: "https", | ||
}, | ||
}; | ||
|
||
export default config; |
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ export default defineConfig({ | |
// implement node event listeners here | ||
}, | ||
}, | ||
}); | ||
}); |
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,6 +1,6 @@ | ||
describe('My First Test', () => { | ||
it('Visits the app root url', () => { | ||
cy.visit('/folder/Inbox') | ||
cy.contains('#container', 'Inbox') | ||
}) | ||
}) | ||
describe("My First Test", () => { | ||
it("Visits the app root url", () => { | ||
cy.visit("/folder/Inbox"); | ||
cy.contains("#container", "Inbox"); | ||
}); | ||
}); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ export default { | |
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} | ||
}; |
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,48 @@ | ||
import { useState } from "react"; | ||
|
||
interface ButtonProps { | ||
id?: string; | ||
text: string; | ||
backgroundColor: string; | ||
textColor?: string; | ||
size?: string | number; | ||
py: string | number; | ||
px: string | number; | ||
onClick?: (e: any) => void; | ||
} | ||
|
||
let Button: React.FC<ButtonProps> = ({ | ||
id, | ||
text, | ||
backgroundColor, | ||
textColor, | ||
size, | ||
px, | ||
py, | ||
onClick, | ||
}) => { | ||
const [hover, setHover] = useState(false); | ||
return ( | ||
<button | ||
id={id} | ||
className={`text-white border border-solid border-2 hover:bg-transparent focus:ring-4 focus:outline-none font-medium rounded-full mr-2`} | ||
style={{ | ||
backgroundColor: hover ? "transparent" : backgroundColor, | ||
color: hover ? backgroundColor : textColor ? textColor : "white", | ||
borderColor: backgroundColor, | ||
fontSize: size, | ||
paddingLeft: px, | ||
paddingRight: px, | ||
paddingTop: py, | ||
paddingBottom: py, | ||
}} | ||
onClick={onClick} | ||
onMouseEnter={() => setHover(true)} | ||
onMouseLeave={() => setHover(false)} | ||
> | ||
{text} | ||
</button> | ||
); | ||
}; | ||
|
||
export default Button; |
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.