mirror of
https://github.com/jambonz/chrome-extension-dialer.git
synced 2025-12-19 04:47:45 +00:00
wip
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "webrtc-chrome-ext",
|
"name": "webrtc-chrome-ext",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "webrtc-chrome-ext",
|
"name": "webrtc-chrome-ext",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@chakra-ui/react": "^2.8.0",
|
"@chakra-ui/react": "^2.8.0",
|
||||||
"@emotion/react": "^11.11.1",
|
"@emotion/react": "^11.11.1",
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
import { Button, VStack, Text, Icon, HStack, Spacer } from "@chakra-ui/react";
|
import {
|
||||||
|
Button,
|
||||||
|
VStack,
|
||||||
|
Text,
|
||||||
|
Icon,
|
||||||
|
HStack,
|
||||||
|
Spacer,
|
||||||
|
Box,
|
||||||
|
} from "@chakra-ui/react";
|
||||||
import { faPhone } from "@fortawesome/free-solid-svg-icons";
|
import { faPhone } from "@fortawesome/free-solid-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import { formatPhoneNumber } from "src/utils";
|
import { formatPhoneNumber } from "src/utils";
|
||||||
@@ -16,7 +24,8 @@ export const IncommingCall = ({
|
|||||||
}: IncommingCallProbs) => {
|
}: IncommingCallProbs) => {
|
||||||
return (
|
return (
|
||||||
<VStack alignItems="center" spacing={4} mt="130px" w="full">
|
<VStack alignItems="center" spacing={4} mt="130px" w="full">
|
||||||
<FontAwesomeIcon
|
<Box
|
||||||
|
as={FontAwesomeIcon}
|
||||||
icon={faPhone}
|
icon={faPhone}
|
||||||
color="jambonz.500"
|
color="jambonz.500"
|
||||||
width="60px"
|
width="60px"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Icon, Text, VStack } from "@chakra-ui/react";
|
import { Box, Button, Icon, Text, VStack } from "@chakra-ui/react";
|
||||||
import { faPhone } from "@fortawesome/free-solid-svg-icons";
|
import { faPhone } from "@fortawesome/free-solid-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import { formatPhoneNumber } from "src/utils";
|
import { formatPhoneNumber } from "src/utils";
|
||||||
@@ -11,7 +11,8 @@ type OutGoingCallProbs = {
|
|||||||
export const OutGoingCall = ({ number, cancelCall }: OutGoingCallProbs) => {
|
export const OutGoingCall = ({ number, cancelCall }: OutGoingCallProbs) => {
|
||||||
return (
|
return (
|
||||||
<VStack alignItems="center" spacing={4} mt="130px" w="full">
|
<VStack alignItems="center" spacing={4} mt="130px" w="full">
|
||||||
<FontAwesomeIcon
|
<Box
|
||||||
|
as={FontAwesomeIcon}
|
||||||
icon={faPhone}
|
icon={faPhone}
|
||||||
color="jambonz.500"
|
color="jambonz.500"
|
||||||
width="60px"
|
width="60px"
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
|
Box,
|
||||||
Button,
|
Button,
|
||||||
FormControl,
|
FormControl,
|
||||||
FormLabel,
|
FormLabel,
|
||||||
@@ -21,6 +22,7 @@ import PasswordInput from "src/components/password-input";
|
|||||||
import ResetIcon from "src/imgs/icons/Reset.svg";
|
import ResetIcon from "src/imgs/icons/Reset.svg";
|
||||||
import { getAdvancedSettings, saveAddvancedSettings } from "src/storage";
|
import { getAdvancedSettings, saveAddvancedSettings } from "src/storage";
|
||||||
import { normalizeUrl } from "src/utils";
|
import { normalizeUrl } from "src/utils";
|
||||||
|
import { useToken } from "@chakra-ui/react";
|
||||||
|
|
||||||
export const AdvancedSettings = () => {
|
export const AdvancedSettings = () => {
|
||||||
const [apiKey, setApiKey] = useState("");
|
const [apiKey, setApiKey] = useState("");
|
||||||
@@ -111,7 +113,8 @@ export const AdvancedSettings = () => {
|
|||||||
</VStack>
|
</VStack>
|
||||||
{isAdvancedMode && (
|
{isAdvancedMode && (
|
||||||
<HStack w="full" mt={2} mb={2}>
|
<HStack w="full" mt={2} mb={2}>
|
||||||
<FontAwesomeIcon
|
<Box
|
||||||
|
as={FontAwesomeIcon}
|
||||||
icon={isCredentialOk ? faCheckCircle : faCircleXmark}
|
icon={isCredentialOk ? faCheckCircle : faCircleXmark}
|
||||||
color={isCredentialOk ? "green.500" : "red.500"}
|
color={isCredentialOk ? "green.500" : "red.500"}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user