mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e4b7fa9e4 |
No files matched your search
+48
-46
@@ -1,13 +1,15 @@
|
|||||||
# comment this out if your server has a different table/location for phone_number
|
# comment this out if your server has a different table/location for phone_number
|
||||||
# or if it already exists in the users table
|
# or if it already exists in the users table
|
||||||
ALTER TABLE `users` ADD COLUMN `phone_number` VARCHAR(20) DEFAULT NULL;
|
ALTER TABLE `users` ADD COLUMN `phone_number` VARCHAR(20) DEFAULT NULL;
|
||||||
|
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('phone', 'Phone', 1, 0, 1);
|
||||||
|
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('dphone', 'Destroyed Phone', 1, 0, 1);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_phone_contacts` (
|
CREATE TABLE IF NOT EXISTS npwd_phone_contacts (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
id int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`identifier` varchar(48) DEFAULT NULL,
|
identifier varchar(60) DEFAULT NULL,
|
||||||
`avatar` varchar(512) DEFAULT NULL,
|
avatar varchar(512) DEFAULT NULL,
|
||||||
`number` varchar(10) DEFAULT NULL,
|
number varchar(10) DEFAULT NULL,
|
||||||
`display` varchar(60) NOT NULL DEFAULT '',
|
display varchar(60) NOT NULL DEFAULT '',
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -17,7 +19,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_tweets` (
|
|||||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
`likes` int NOT NULL DEFAULT '0',
|
`likes` int NOT NULL DEFAULT '0',
|
||||||
`identifier` varchar(48) NOT NULL,
|
`identifier` varchar(40) NOT NULL,
|
||||||
`visible` tinyint NOT NULL DEFAULT '1',
|
`visible` tinyint NOT NULL DEFAULT '1',
|
||||||
`images` varchar(1000) DEFAULT '',
|
`images` varchar(1000) DEFAULT '',
|
||||||
`retweet` int DEFAULT NULL,
|
`retweet` int DEFAULT NULL,
|
||||||
@@ -28,7 +30,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_tweets` (
|
|||||||
CREATE TABLE IF NOT EXISTS `npwd_twitter_profiles` (
|
CREATE TABLE IF NOT EXISTS `npwd_twitter_profiles` (
|
||||||
`id` int NOT NULL AUTO_INCREMENT,
|
`id` int NOT NULL AUTO_INCREMENT,
|
||||||
`profile_name` varchar(90) NOT NULL,
|
`profile_name` varchar(90) NOT NULL,
|
||||||
`identifier` varchar(48) NOT NULL,
|
`identifier` varchar(40) NOT NULL,
|
||||||
# Default Profile avatar can be set here
|
# Default Profile avatar can be set here
|
||||||
`avatar_url` varchar(255) DEFAULT 'https://beta.iodine.gg/QrEvq.png',
|
`avatar_url` varchar(255) DEFAULT 'https://beta.iodine.gg/QrEvq.png',
|
||||||
`bio` varchar(512) DEFAULT NULL,
|
`bio` varchar(512) DEFAULT NULL,
|
||||||
@@ -54,7 +56,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_likes` (
|
|||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_match_profiles` (
|
CREATE TABLE IF NOT EXISTS `npwd_match_profiles` (
|
||||||
`id` int NOT NULL AUTO_INCREMENT,
|
`id` int NOT NULL AUTO_INCREMENT,
|
||||||
`identifier` varchar(48) NOT NULL,
|
`identifier` varchar(255) NOT NULL,
|
||||||
`name` varchar(90) NOT NULL,
|
`name` varchar(90) NOT NULL,
|
||||||
`image` varchar(255) NOT NULL,
|
`image` varchar(255) NOT NULL,
|
||||||
`bio` varchar(512) DEFAULT NULL,
|
`bio` varchar(512) DEFAULT NULL,
|
||||||
@@ -66,11 +68,11 @@ CREATE TABLE IF NOT EXISTS `npwd_match_profiles` (
|
|||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `name_UNIQUE` (`name`),
|
UNIQUE KEY `name_UNIQUE` (`name`),
|
||||||
UNIQUE KEY `identifier_UNIQUE` (`identifier`)
|
UNIQUE KEY `identifier_UNIQUE` (`identifier`)
|
||||||
);
|
) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_match_views` (
|
CREATE TABLE IF NOT EXISTS `npwd_match_views` (
|
||||||
`id` int NOT NULL AUTO_INCREMENT,
|
`id` int NOT NULL AUTO_INCREMENT,
|
||||||
`identifier` varchar(48) NOT NULL,
|
`identifier` varchar(40) NOT NULL,
|
||||||
`profile` int NOT NULL,
|
`profile` int NOT NULL,
|
||||||
`liked` tinyint DEFAULT '0',
|
`liked` tinyint DEFAULT '0',
|
||||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
@@ -78,34 +80,34 @@ CREATE TABLE IF NOT EXISTS `npwd_match_views` (
|
|||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `match_profile_idx` (`profile`),
|
KEY `match_profile_idx` (`profile`),
|
||||||
CONSTRAINT `match_profile` FOREIGN KEY (`profile`) REFERENCES `npwd_match_profiles` (`id`)
|
CONSTRAINT `match_profile` FOREIGN KEY (`profile`) REFERENCES `npwd_match_profiles` (`id`)
|
||||||
);
|
) ENGINE=InnoDB AUTO_INCREMENT=131 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_notes` (
|
CREATE TABLE IF NOT EXISTS npwd_notes (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
id int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`identifier` varchar(48) NOT NULL,
|
identifier varchar(255) NOT NULL,
|
||||||
`title` varchar(255) NOT NULL,
|
title varchar(255) NOT NULL,
|
||||||
`content` varchar(255) NOT NULL,
|
content varchar(255) NOT NULL,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_marketplace_listings` (
|
CREATE TABLE IF NOT EXISTS npwd_marketplace_listings (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
id int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`identifier` varchar(48) DEFAULT NULL,
|
identifier varchar(255) DEFAULT NULL,
|
||||||
`username` varchar(255) DEFAULT NULL,
|
username varchar(255) DEFAULT NULL,
|
||||||
`name` varchar(50) DEFAULT NULL,
|
name varchar(50) DEFAULT NULL,
|
||||||
`number` varchar(255) NOT NULL,
|
number varchar(255) NOT NULL,
|
||||||
`title` varchar(255) DEFAULT NULL,
|
title varchar(255) DEFAULT NULL,
|
||||||
`url` varchar(255) DEFAULT NULL,
|
url varchar(255) DEFAULT NULL,
|
||||||
`description` varchar(255) NOT NULL,
|
description varchar(255) NOT NULL,
|
||||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
updatedAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_marketplace_reports` (
|
CREATE TABLE IF NOT EXISTS npwd_marketplace_reports (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
id int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`listing_id` int(11) DEFAULT NULL,
|
listing_id int(11) DEFAULT NULL,
|
||||||
`profile` varchar(255) DEFAULT NULL,
|
profile varchar(255) DEFAULT NULL,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -123,11 +125,11 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_reports` (
|
|||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_messages_groups` (
|
CREATE TABLE IF NOT EXISTS `npwd_messages_groups` (
|
||||||
`id` int NOT NULL AUTO_INCREMENT,
|
`id` int NOT NULL AUTO_INCREMENT,
|
||||||
`user_identifier` varchar(48) NOT NULL,
|
`user_identifier` varchar(40) NOT NULL,
|
||||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
`group_id` varchar(512) NOT NULL,
|
`group_id` varchar(512) NOT NULL,
|
||||||
`participant_identifier` varchar(48) NOT NULL,
|
`participant_identifier` varchar(40) NOT NULL,
|
||||||
`label` varchar(60) DEFAULT '',
|
`label` varchar(60) DEFAULT '',
|
||||||
`unreadCount` int(11) NOT NULL DEFAULT 0,
|
`unreadCount` int(11) NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
@@ -135,7 +137,7 @@ CREATE TABLE IF NOT EXISTS `npwd_messages_groups` (
|
|||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_messages_labels` (
|
CREATE TABLE IF NOT EXISTS `npwd_messages_labels` (
|
||||||
`id` int NOT NULL AUTO_INCREMENT,
|
`id` int NOT NULL AUTO_INCREMENT,
|
||||||
`user_identifier` varchar(48) NOT NULL,
|
`user_identifier` varchar(40) NOT NULL,
|
||||||
`label` varchar(60) NOT NULL,
|
`label` varchar(60) NOT NULL,
|
||||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||||
@@ -146,7 +148,7 @@ CREATE TABLE IF NOT EXISTS `npwd_messages_labels` (
|
|||||||
CREATE TABLE IF NOT EXISTS `npwd_messages` (
|
CREATE TABLE IF NOT EXISTS `npwd_messages` (
|
||||||
`id` int NOT NULL AUTO_INCREMENT,
|
`id` int NOT NULL AUTO_INCREMENT,
|
||||||
`message` varchar(512) NOT NULL,
|
`message` varchar(512) NOT NULL,
|
||||||
`user_identifier` varchar(48) NOT NULL,
|
`user_identifier` varchar(40) NOT NULL,
|
||||||
`group_id` varchar(512) NOT NULL,
|
`group_id` varchar(512) NOT NULL,
|
||||||
`isRead` tinyint NOT NULL DEFAULT '0',
|
`isRead` tinyint NOT NULL DEFAULT '0',
|
||||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
@@ -155,20 +157,20 @@ CREATE TABLE IF NOT EXISTS `npwd_messages` (
|
|||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `npwd_calls` (
|
CREATE TABLE IF NOT EXISTS npwd_calls (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
id int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`identifier` varchar(48) DEFAULT NULL,
|
identifier varchar(255) DEFAULT NULL,
|
||||||
`transmitter` varchar(255) NOT NULL,
|
transmitter varchar(255) NOT NULL,
|
||||||
`receiver` varchar(255) NOT NULL,
|
receiver varchar(255) NOT NULL,
|
||||||
`is_accepted` tinyint(4) DEFAULT 0,
|
is_accepted tinyint(4) DEFAULT 0,
|
||||||
`start` varchar(255) DEFAULT NULL,
|
start varchar(255) DEFAULT NULL,
|
||||||
end varchar(255) DEFAULT NULL,
|
end varchar(255) DEFAULT NULL,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS npwd_phone_gallery (
|
CREATE TABLE IF NOT EXISTS npwd_phone_gallery (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
id int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`identifier` varchar(48) DEFAULT NULL,
|
identifier varchar(255) DEFAULT NULL,
|
||||||
`image` varchar(255) DEFAULT NULL,
|
image varchar(255) DEFAULT NULL,
|
||||||
PRIMARY KEY (id)
|
PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
+4
-4
@@ -16,7 +16,7 @@ import { useApps } from './os/apps/hooks/useApps';
|
|||||||
import { useContactsService } from './apps/contacts/hooks/useContactsService';
|
import { useContactsService } from './apps/contacts/hooks/useContactsService';
|
||||||
import { useTwitterService } from './apps/twitter/hooks/useTwitterService';
|
import { useTwitterService } from './apps/twitter/hooks/useTwitterService';
|
||||||
import { useMatchService } from './apps/match/hooks/useMatchService';
|
import { useMatchService } from './apps/match/hooks/useMatchService';
|
||||||
import { useMarketplaceService } from './apps/marketplace/hooks/useMarketplaceService';
|
import { useSelloutService } from './apps/sellout/hooks/useSelloutService';
|
||||||
import { useBankService } from './apps/bank/hooks/useBankService';
|
import { useBankService } from './apps/bank/hooks/useBankService';
|
||||||
import { useMessagesService } from './apps/messages/hooks/useMessageService';
|
import { useMessagesService } from './apps/messages/hooks/useMessageService';
|
||||||
import { useNotesService } from './apps/notes/hooks/useNotesService';
|
import { useNotesService } from './apps/notes/hooks/useNotesService';
|
||||||
@@ -68,7 +68,7 @@ function Phone() {
|
|||||||
useContactsService();
|
useContactsService();
|
||||||
useTwitterService();
|
useTwitterService();
|
||||||
useMatchService();
|
useMatchService();
|
||||||
useMarketplaceService();
|
useSelloutService();
|
||||||
useBankService();
|
useBankService();
|
||||||
useMessagesService();
|
useMessagesService();
|
||||||
useNotesService();
|
useNotesService();
|
||||||
@@ -104,8 +104,8 @@ function Phone() {
|
|||||||
id="phone"
|
id="phone"
|
||||||
className="PhoneScreen"
|
className="PhoneScreen"
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: settings.customWallpaper
|
backgroundImage: settings.customBackground.value
|
||||||
? `url(${settings.customWallpaper})`
|
? `url(${settings.customBackground.value})`
|
||||||
: `url(media/backgrounds/${settings.wallpaper.value})`,
|
: `url(media/backgrounds/${settings.wallpaper.value})`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -5,12 +5,11 @@ import { GalleryGrid } from './grid/GalleryGrid';
|
|||||||
import { GalleryModal } from './modal/GalleryModal';
|
import { GalleryModal } from './modal/GalleryModal';
|
||||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||||
import { Route, Switch } from 'react-router-dom';
|
import { Route, Switch } from 'react-router-dom';
|
||||||
import { PhotoEvents } from '../../../../../typings/photo';
|
|
||||||
|
|
||||||
InjectDebugData([
|
InjectDebugData([
|
||||||
{
|
{
|
||||||
app: 'CAMERA',
|
app: 'CAMERA',
|
||||||
method: PhotoEvents.SEND_PHOTOS,
|
method: 'setPhotos',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
import { useSetRecoilState } from 'recoil';
|
import { useSetRecoilState } from 'recoil';
|
||||||
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
import { useNuiEvent } from '../../../os/nui-events/hooks/useNuiEvent';
|
||||||
import { photoState } from './state';
|
import { photoState } from './state';
|
||||||
import { PhotoEvents } from '../../../../../typings/photo';
|
|
||||||
|
|
||||||
export const usePhotoService = () => {
|
export const usePhotoService = () => {
|
||||||
const setPhotos = useSetRecoilState(photoState.photos);
|
const setPhotos = useSetRecoilState(photoState.photos);
|
||||||
useNuiEvent('CAMERA', PhotoEvents.SEND_PHOTOS, setPhotos);
|
useNuiEvent('CAMERA', 'setPhotos', setPhotos);
|
||||||
};
|
};
|
||||||
@@ -9,7 +9,6 @@ import { Route } from 'react-router-dom';
|
|||||||
import ContactsInfoPage from './views/ContactInfo';
|
import ContactsInfoPage from './views/ContactInfo';
|
||||||
import { ContactPage } from './views/ContactsPage';
|
import { ContactPage } from './views/ContactsPage';
|
||||||
import { ContactsThemeProvider } from '../providers/ContactsThemeProvider';
|
import { ContactsThemeProvider } from '../providers/ContactsThemeProvider';
|
||||||
import { ContactEvents } from '../../../../../typings/contact';
|
|
||||||
|
|
||||||
export const ContactsApp = () => {
|
export const ContactsApp = () => {
|
||||||
const contacts = useApp('CONTACTS');
|
const contacts = useApp('CONTACTS');
|
||||||
@@ -30,7 +29,7 @@ export const ContactsApp = () => {
|
|||||||
InjectDebugData([
|
InjectDebugData([
|
||||||
{
|
{
|
||||||
app: 'CONTACTS',
|
app: 'CONTACTS',
|
||||||
method: ContactEvents.SEND_CONTACTS,
|
method: 'setContacts',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import { useDialHistory } from '../hooks/useDialHistory';
|
|||||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||||
import { ContactList } from '../../contacts/components/List/ContactList';
|
import { ContactList } from '../../contacts/components/List/ContactList';
|
||||||
import { DialerThemeProvider } from '../providers/DialerThemeProvider';
|
import { DialerThemeProvider } from '../providers/DialerThemeProvider';
|
||||||
import { CallEvents } from '../../../../../typings/call';
|
|
||||||
|
|
||||||
export const DialerApp = () => {
|
export const DialerApp = () => {
|
||||||
const history = useDialHistory();
|
const history = useDialHistory();
|
||||||
@@ -41,7 +40,7 @@ export const DialerApp = () => {
|
|||||||
InjectDebugData([
|
InjectDebugData([
|
||||||
{
|
{
|
||||||
app: 'DIALER',
|
app: 'DIALER',
|
||||||
method: CallEvents.SET_CALL_HISTORY,
|
method: 'setHistory',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import { DialInputCtx, IDialInputCtx } from '../context/InputContext';
|
|||||||
import Nui from '../../../os/nui-events/utils/Nui';
|
import Nui from '../../../os/nui-events/utils/Nui';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import { CallEvents } from '../../../../../typings/call';
|
import { CallEvents } from '../../../../../typings/call';
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
|
|
||||||
const useStyles = makeStyles((theme: Theme) => ({
|
const useStyles = makeStyles((theme: Theme) => ({
|
||||||
root: {
|
root: {
|
||||||
@@ -31,7 +30,6 @@ const useStyles = makeStyles((theme: Theme) => ({
|
|||||||
export const DialerInput = () => {
|
export const DialerInput = () => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const { t } = useTranslation();
|
|
||||||
|
|
||||||
const { inputVal, set } = useContext<IDialInputCtx>(DialInputCtx);
|
const { inputVal, set } = useContext<IDialInputCtx>(DialInputCtx);
|
||||||
|
|
||||||
@@ -48,7 +46,7 @@ export const DialerInput = () => {
|
|||||||
return (
|
return (
|
||||||
<Box component={Paper} className={classes.root}>
|
<Box component={Paper} className={classes.root}>
|
||||||
<InputBase
|
<InputBase
|
||||||
placeholder={t('APPS_DIALER_INPUT_PLACEHOLDER')}
|
placeholder="Enter a number"
|
||||||
className={classes.input}
|
className={classes.input}
|
||||||
value={inputVal}
|
value={inputVal}
|
||||||
onChange={(e) => set(e.target.value)}
|
onChange={(e) => set(e.target.value)}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { makeStyles, Theme } from '@material-ui/core/styles';
|
|||||||
import PhoneIcon from '@material-ui/icons/Phone';
|
import PhoneIcon from '@material-ui/icons/Phone';
|
||||||
import PersonIcon from '@material-ui/icons/Person';
|
import PersonIcon from '@material-ui/icons/Person';
|
||||||
import HistoryIcon from '@material-ui/icons/History';
|
import HistoryIcon from '@material-ui/icons/History';
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
|
|
||||||
const useStyles = makeStyles((theme: Theme) => ({
|
const useStyles = makeStyles((theme: Theme) => ({
|
||||||
root: {
|
root: {
|
||||||
@@ -21,7 +20,6 @@ const DialerNavBar = () => {
|
|||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
const [page, setPage] = useState(pathname);
|
const [page, setPage] = useState(pathname);
|
||||||
const { t } = useTranslation();
|
|
||||||
|
|
||||||
const handleChange = (_e, newPage) => {
|
const handleChange = (_e, newPage) => {
|
||||||
setPage(newPage);
|
setPage(newPage);
|
||||||
@@ -30,14 +28,14 @@ const DialerNavBar = () => {
|
|||||||
return (
|
return (
|
||||||
<BottomNavigation value={page} onChange={handleChange} showLabels className={classes.root}>
|
<BottomNavigation value={page} onChange={handleChange} showLabels className={classes.root}>
|
||||||
<BottomNavigationAction
|
<BottomNavigationAction
|
||||||
label={t('APPS_DIALER_NAVBAR_HISTORY')}
|
label="History"
|
||||||
value="/phone"
|
value="/phone"
|
||||||
component={NavLink}
|
component={NavLink}
|
||||||
icon={<HistoryIcon />}
|
icon={<HistoryIcon />}
|
||||||
to="/phone"
|
to="/phone"
|
||||||
/>
|
/>
|
||||||
<BottomNavigationAction
|
<BottomNavigationAction
|
||||||
label={t('APPS_DIALER_NAVBAR_DIAL')}
|
label="Dial"
|
||||||
value="/phone/dial"
|
value="/phone/dial"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
component={NavLink}
|
component={NavLink}
|
||||||
@@ -45,7 +43,7 @@ const DialerNavBar = () => {
|
|||||||
to="/phone/dial"
|
to="/phone/dial"
|
||||||
/>
|
/>
|
||||||
<BottomNavigationAction
|
<BottomNavigationAction
|
||||||
label={t('APPS_DIALER_NAVBAR_CONTACTS')}
|
label="Contacts"
|
||||||
value="/phone/contacts"
|
value="/phone/contacts"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
component={NavLink}
|
component={NavLink}
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import { MarketplaceList } from './MarketplaceList';
|
|
||||||
|
|
||||||
export const MarketplaceListContainer = () => {
|
|
||||||
return <MarketplaceList />;
|
|
||||||
};
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
import { createAppThemeProvider } from '../../../os/apps/utils/createAppThemeProvider';
|
|
||||||
|
|
||||||
import selloutTheme from '../marketplace.theme';
|
|
||||||
|
|
||||||
export const MarketplaceThemeProvider = createAppThemeProvider(selloutTheme);
|
|
||||||
@@ -54,7 +54,7 @@ InjectDebugData(
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
app: 'MATCH',
|
app: 'MATCH',
|
||||||
method: MatchEvents.GET_PROFILES_SUCCESS,
|
method: 'phone:getMatchProfilesSuccess',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -102,7 +102,7 @@ InjectDebugData(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
app: 'MATCH',
|
app: 'MATCH',
|
||||||
method: MatchEvents.GET_MY_PROFILE_SUCCESS,
|
method: 'phone:getMyProfileSuccess',
|
||||||
data: {
|
data: {
|
||||||
id: 4,
|
id: 4,
|
||||||
image:
|
image:
|
||||||
@@ -120,7 +120,7 @@ InjectDebugData(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
app: 'MATCH',
|
app: 'MATCH',
|
||||||
method: MatchEvents.GET_MATCHES_SUCCESS,
|
method: 'phone:getMatchesSuccess',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 5,
|
id: 5,
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ export const MessagesApp = () => {
|
|||||||
InjectDebugData([
|
InjectDebugData([
|
||||||
{
|
{
|
||||||
app: 'MESSAGES',
|
app: 'MESSAGES',
|
||||||
method: MessageEvents.FETCH_MESSAGE_GROUPS_SUCCESS,
|
method: 'phone:fetchMessageGroupsSuccess',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
groupId: '2',
|
groupId: '2',
|
||||||
@@ -93,7 +93,7 @@ InjectDebugData(
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
app: 'MESSAGES',
|
app: 'MESSAGES',
|
||||||
method: MessageEvents.FETCH_MESSAGES_SUCCESS,
|
method: 'phone:fetchMessagesSuccess',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
import React, { useCallback, useEffect, useState } from 'react';
|
import React, { useCallback, useEffect, useState } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Box, Button, TextField } from '@material-ui/core';
|
import { Box, Button, TextField } from '@material-ui/core';
|
||||||
|
|
||||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
import Nui from '../../../../os/nui-events/utils/Nui';
|
||||||
import { useHistory } from 'react-router-dom';
|
import { useHistory } from 'react-router-dom';
|
||||||
import { Autocomplete } from '@material-ui/lab';
|
import { Autocomplete } from '@material-ui/lab';
|
||||||
import { useContacts } from '../../../contacts/hooks/useContacts';
|
import { useContacts } from '../../../contacts/hooks/useContacts';
|
||||||
import { Contact } from '../../../../../../typings/contact';
|
import { Contact } from '../../../../../../typings/contact';
|
||||||
import { MessageEvents } from '../../../../../../typings/messages';
|
import { MessageEvents } from '../../../../../../typings/messages';
|
||||||
import { PHONE_NUMBER_REGEX } from '../../../../../../typings/phone';
|
|
||||||
import { useSnackbar } from '../../../../ui/hooks/useSnackbar';
|
|
||||||
|
|
||||||
const NewMessageGroupForm = ({ phoneNumber }: { phoneNumber?: string }) => {
|
const NewMessageGroupForm = ({ phoneNumber }: { phoneNumber?: string }) => {
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { addAlert } = useSnackbar();
|
|
||||||
const [participants, setParticipants] = useState([]);
|
const [participants, setParticipants] = useState([]);
|
||||||
const [label, setLabel] = useState('');
|
const [label, setLabel] = useState('');
|
||||||
const { getContactByNumber, contacts } = useContacts();
|
const { getContactByNumber, contacts } = useContacts();
|
||||||
@@ -47,10 +45,6 @@ const NewMessageGroupForm = ({ phoneNumber }: { phoneNumber?: string }) => {
|
|||||||
const onAutocompleteChange = (_e, value: any) => {
|
const onAutocompleteChange = (_e, value: any) => {
|
||||||
const lastIdx = value.length - 1;
|
const lastIdx = value.length - 1;
|
||||||
if (typeof value[lastIdx] === 'string') {
|
if (typeof value[lastIdx] === 'string') {
|
||||||
const isValid = PHONE_NUMBER_REGEX.test(value[lastIdx]);
|
|
||||||
if (!isValid) {
|
|
||||||
return addAlert({ message: t('APPS_MESSAGES_INVALID_PHONE_NUMBER'), type: 'error' });
|
|
||||||
}
|
|
||||||
value.splice(lastIdx, 1, { number: value[lastIdx] });
|
value.splice(lastIdx, 1, { number: value[lastIdx] });
|
||||||
setParticipants(value);
|
setParticipants(value);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import { useCallback } from 'react';
|
|||||||
import Nui from '../../../os/nui-events/utils/Nui';
|
import Nui from '../../../os/nui-events/utils/Nui';
|
||||||
import { useLocation } from 'react-router';
|
import { useLocation } from 'react-router';
|
||||||
import { MessageEvents } from '../../../../../typings/messages';
|
import { MessageEvents } from '../../../../../typings/messages';
|
||||||
import { TOptionsBase } from 'i18next';
|
|
||||||
|
|
||||||
export const useMessagesService = () => {
|
export const useMessagesService = () => {
|
||||||
const { pathname } = useLocation();
|
const { pathname } = useLocation();
|
||||||
@@ -23,9 +22,9 @@ export const useMessagesService = () => {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const handleAddAlert = useCallback(
|
const handleAddAlert = useCallback(
|
||||||
({ message, type, options = {} }: IAlert & { options: TOptionsBase }) => {
|
({ message, type }: IAlert) => {
|
||||||
addAlert({
|
addAlert({
|
||||||
message: t(`${message}`, options),
|
message: t(`APPS_${message}`),
|
||||||
type,
|
type,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ import useStyles from './notes.styles';
|
|||||||
import InjectDebugData from '../../os/debug/InjectDebugData';
|
import InjectDebugData from '../../os/debug/InjectDebugData';
|
||||||
import { NotesThemeProvider } from './providers/NotesThemeProvider';
|
import { NotesThemeProvider } from './providers/NotesThemeProvider';
|
||||||
import { Route, useHistory } from 'react-router-dom';
|
import { Route, useHistory } from 'react-router-dom';
|
||||||
import { NotesEvents } from '../../../../typings/notes';
|
|
||||||
|
|
||||||
export const NotesApp = () => {
|
export const NotesApp = () => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
@@ -44,7 +43,7 @@ export const NotesApp = () => {
|
|||||||
InjectDebugData([
|
InjectDebugData([
|
||||||
{
|
{
|
||||||
app: 'NOTES',
|
app: 'NOTES',
|
||||||
method: NotesEvents.SEND_NOTE,
|
method: 'setNotes',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|||||||
+12
-14
@@ -1,44 +1,42 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { AppWrapper } from '../../../ui/components/AppWrapper';
|
import { AppWrapper } from '../../../ui/components/AppWrapper';
|
||||||
import { AppContent } from '../../../ui/components/AppContent';
|
import { AppContent } from '../../../ui/components/AppContent';
|
||||||
import { MarketplaceTitle } from './MarketplaceTitle';
|
import { SelloutTitle } from './SelloutTitle';
|
||||||
import { MarketplaceListContainer } from './SelloutList/MarketplaceListContainer';
|
import { SelloutListContainer } from './SelloutList/SelloutListContainer';
|
||||||
import { NavigationBar } from './navigation/NavigationBar';
|
import { NavigationBar } from './navigation/NavigationBar';
|
||||||
import { Switch, Route } from 'react-router-dom';
|
import { Switch, Route } from 'react-router-dom';
|
||||||
import { ListingFormContainer } from './form/ListingFormContainer';
|
import { ListingFormContainer } from './form/ListingFormContainer';
|
||||||
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
import InjectDebugData from '../../../os/debug/InjectDebugData';
|
||||||
import { MarketplaceThemeProvider } from '../providers/MarketplaceThemeProvider';
|
import { SelloutThemeProvider } from '../providers/SelloutThemeProvider';
|
||||||
import { MarketplaceEvents } from '../../../../../typings/marketplace';
|
|
||||||
|
|
||||||
export const MarketplaceApp = () => {
|
export const SelloutApp = () => {
|
||||||
return (
|
return (
|
||||||
<MarketplaceThemeProvider>
|
<SelloutThemeProvider>
|
||||||
<AppWrapper id="sellout-app">
|
<AppWrapper id="sellout-app">
|
||||||
<MarketplaceTitle />
|
<SelloutTitle />
|
||||||
<AppContent>
|
<AppContent>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path="/marketplace" exact component={MarketplaceListContainer} />
|
<Route path="/sellout" exact component={SelloutListContainer} />
|
||||||
<Route path="/marketplace/new" component={ListingFormContainer} />
|
<Route path="/sellout/new" component={ListingFormContainer} />
|
||||||
</Switch>
|
</Switch>
|
||||||
</AppContent>
|
</AppContent>
|
||||||
<NavigationBar />
|
<NavigationBar />
|
||||||
</AppWrapper>
|
</AppWrapper>
|
||||||
</MarketplaceThemeProvider>
|
</SelloutThemeProvider>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
InjectDebugData([
|
InjectDebugData([
|
||||||
{
|
{
|
||||||
app: 'SELLOUT',
|
app: 'SELLOUT',
|
||||||
method: MarketplaceEvents.SEND_LISTING,
|
method: 'setListings',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 'Some guy',
|
name: 'Some guy',
|
||||||
number: '111-1134',
|
number: '111-1134',
|
||||||
title: 'eeeeeeeeeeeeeeeeeeeeeeeee',
|
title: 'Car',
|
||||||
description:
|
description: 'Selling this cool car',
|
||||||
'skldfsdEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE',
|
|
||||||
url: 'https://beta.iodine.gg/706Y3.jpeg',
|
url: 'https://beta.iodine.gg/706Y3.jpeg',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
File renamed without changes.
+2
-10
@@ -31,17 +31,9 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
background: theme.palette.background.default,
|
background: theme.palette.background.default,
|
||||||
marginBottom: 20,
|
marginBottom: 20,
|
||||||
},
|
},
|
||||||
listingContent: {
|
|
||||||
padding: 10,
|
|
||||||
minWidth: 100,
|
|
||||||
maxWidth: '100%',
|
|
||||||
width: '100%',
|
|
||||||
overflowWrap: 'break-word',
|
|
||||||
wordWrap: 'break-word',
|
|
||||||
},
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const MarketplaceItem = (listing: MarketplaceListing) => {
|
export const SelloutItem = (listing: MarketplaceListing) => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -70,7 +62,7 @@ export const MarketplaceItem = (listing: MarketplaceListing) => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Typography variant="body1" className={classes.listingContent}>
|
<Typography variant="h6" style={{ padding: 10 }}>
|
||||||
{listing.description}
|
{listing.description}
|
||||||
</Typography>
|
</Typography>
|
||||||
<ListingActions listing={listing} />
|
<ListingActions listing={listing} />
|
||||||
+3
-3
@@ -1,15 +1,15 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { List } from '../../../../ui/components/List';
|
import { List } from '../../../../ui/components/List';
|
||||||
import { useListing } from '../../hooks/useListing';
|
import { useListing } from '../../hooks/useListing';
|
||||||
import { MarketplaceItem } from './MarketplaceItem';
|
import { SelloutItem } from './SelloutItem';
|
||||||
|
|
||||||
export const MarketplaceList = () => {
|
export const SelloutList = () => {
|
||||||
const listings = useListing();
|
const listings = useListing();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<List>
|
<List>
|
||||||
{listings.map((listing) => (
|
{listings.map((listing) => (
|
||||||
<MarketplaceItem key={listing.id} {...listing} />
|
<SelloutItem key={listing.id} {...listing} />
|
||||||
))}
|
))}
|
||||||
</List>
|
</List>
|
||||||
);
|
);
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import { SelloutList } from './SelloutList';
|
||||||
|
|
||||||
|
export const SelloutListContainer = () => {
|
||||||
|
return <SelloutList />;
|
||||||
|
};
|
||||||
+1
-1
@@ -20,7 +20,7 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
export const MarketplaceTitle = () => {
|
export const SelloutTitle = () => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
return (
|
return (
|
||||||
<Paper className={classes.root} square variant="outlined" elevation={24}>
|
<Paper className={classes.root} square variant="outlined" elevation={24}>
|
||||||
+12
-39
@@ -1,10 +1,7 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import { makeStyles, Button, TextField, Typography } from '@material-ui/core';
|
import { makeStyles, Button, TextField } from '@material-ui/core';
|
||||||
import Nui from '../../../../os/nui-events/utils/Nui';
|
import Nui from '../../../../os/nui-events/utils/Nui';
|
||||||
import { MarketplaceEvents } from '../../../../../../typings/marketplace';
|
import { MarketplaceEvents } from '../../../../../../typings/marketplace';
|
||||||
import { useSnackbar } from '../../../../ui/hooks/useSnackbar';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
import { useHistory } from 'react-router';
|
|
||||||
|
|
||||||
const useStyles = makeStyles((theme) => ({
|
const useStyles = makeStyles((theme) => ({
|
||||||
root: {
|
root: {
|
||||||
@@ -32,28 +29,17 @@ const useStyles = makeStyles((theme) => ({
|
|||||||
|
|
||||||
export const ListingForm = () => {
|
export const ListingForm = () => {
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
const { t } = useTranslation();
|
|
||||||
const { addAlert } = useSnackbar();
|
|
||||||
const history = useHistory();
|
|
||||||
|
|
||||||
const [title, setTitle] = useState('');
|
const [title, setTitle] = useState('');
|
||||||
const [url, setUrl] = useState('');
|
const [url, setUrl] = useState('');
|
||||||
const [description, setDescription] = useState('');
|
const [description, setDescription] = useState('');
|
||||||
|
|
||||||
const addListing = () => {
|
const addListing = () => {
|
||||||
if (title !== '' && description !== '') {
|
Nui.send(MarketplaceEvents.ADD_LISTING, {
|
||||||
Nui.send(MarketplaceEvents.ADD_LISTING, {
|
title,
|
||||||
title,
|
url,
|
||||||
url,
|
description,
|
||||||
description,
|
});
|
||||||
});
|
|
||||||
history.push('/marketplace');
|
|
||||||
} else {
|
|
||||||
addAlert({
|
|
||||||
message: t('APPS_MARKETPLACE_REQUIRED_FIELDS'),
|
|
||||||
type: 'error',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -62,22 +48,15 @@ export const ListingForm = () => {
|
|||||||
<TextField
|
<TextField
|
||||||
className={classes.input}
|
className={classes.input}
|
||||||
onChange={(e) => setTitle(e.target.value)}
|
onChange={(e) => setTitle(e.target.value)}
|
||||||
label={t('GENERIC_REQUIRED')}
|
placeholder="Title on listing.."
|
||||||
placeholder={t('APPS_MARKETPLACE_FORM_TITLE')}
|
inputProps={{ className: classes.textFieldInput }}
|
||||||
inputProps={{
|
|
||||||
className: classes.textFieldInput,
|
|
||||||
maxLength: 25,
|
|
||||||
}}
|
|
||||||
style={{ width: '80%' }}
|
style={{ width: '80%' }}
|
||||||
size="medium"
|
size="medium"
|
||||||
InputLabelProps={{
|
|
||||||
shrink: true,
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<TextField
|
<TextField
|
||||||
className={classes.input}
|
className={classes.input}
|
||||||
placeholder={t('APPS_MARKETPLACE_FORM_IMAGE')}
|
placeholder="Image URL"
|
||||||
onChange={(e) => setUrl(e.target.value)}
|
onChange={(e) => setUrl(e.target.value)}
|
||||||
inputProps={{ className: classes.textFieldInput }}
|
inputProps={{ className: classes.textFieldInput }}
|
||||||
style={{ width: '80%' }}
|
style={{ width: '80%' }}
|
||||||
@@ -88,21 +67,15 @@ export const ListingForm = () => {
|
|||||||
<TextField
|
<TextField
|
||||||
className={classes.input}
|
className={classes.input}
|
||||||
onChange={(e) => setDescription(e.target.value)}
|
onChange={(e) => setDescription(e.target.value)}
|
||||||
label={t('GENERIC_REQUIRED')}
|
placeholder="Description"
|
||||||
placeholder={t('APPS_MARKETPLACE_FORM_DESCRIPTION')}
|
inputProps={{ className: classes.multilineFieldInput }}
|
||||||
inputProps={{
|
|
||||||
className: classes.multilineFieldInput,
|
|
||||||
maxLength: 130,
|
|
||||||
}}
|
|
||||||
style={{ width: '80%' }}
|
style={{ width: '80%' }}
|
||||||
size="medium"
|
size="medium"
|
||||||
InputLabelProps={{
|
|
||||||
shrink: true,
|
|
||||||
}}
|
|
||||||
multiline
|
multiline
|
||||||
rows={4}
|
rows={4}
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Button onClick={addListing} className={classes.postButton}>
|
<Button onClick={addListing} className={classes.postButton}>
|
||||||
Post
|
Post
|
||||||
</Button>
|
</Button>
|
||||||
File renamed without changes.
+2
-2
@@ -31,9 +31,9 @@ export const NavigationBar = () => {
|
|||||||
<BottomNavigationAction
|
<BottomNavigationAction
|
||||||
component={Link}
|
component={Link}
|
||||||
icon={<FontAwesomeIcon icon={faHome} />}
|
icon={<FontAwesomeIcon icon={faHome} />}
|
||||||
to="/marketplace"
|
to="/sellout"
|
||||||
/>
|
/>
|
||||||
<BottomNavigationAction component={Link} icon={<AddCircleIcon />} to="/marketplace/new" />
|
<BottomNavigationAction component={Link} icon={<AddCircleIcon />} to="/sellout/new" />
|
||||||
</BottomNavigation>
|
</BottomNavigation>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
File renamed without changes.
File renamed without changes.
+1
-1
@@ -6,7 +6,7 @@ import { IAlert, useSnackbar } from '../../../ui/hooks/useSnackbar';
|
|||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { MarketplaceEvents } from '../../../../../typings/marketplace';
|
import { MarketplaceEvents } from '../../../../../typings/marketplace';
|
||||||
|
|
||||||
export const useMarketplaceService = () => {
|
export const useSelloutService = () => {
|
||||||
const setSellout = useSetRecoilState(selloutState.listing);
|
const setSellout = useSetRecoilState(selloutState.listing);
|
||||||
const { addAlert } = useSnackbar();
|
const { addAlert } = useSnackbar();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
import { createAppThemeProvider } from '../../../os/apps/utils/createAppThemeProvider';
|
||||||
|
|
||||||
|
import selloutTheme from '../sellout.theme';
|
||||||
|
|
||||||
|
export const SelloutThemeProvider = createAppThemeProvider(selloutTheme);
|
||||||
File renamed without changes.
@@ -1,4 +1,4 @@
|
|||||||
import React from 'react';
|
import React, { useState } from 'react';
|
||||||
import {
|
import {
|
||||||
ListItem,
|
ListItem,
|
||||||
ListItemText,
|
ListItemText,
|
||||||
@@ -12,8 +12,6 @@ import {
|
|||||||
Switch,
|
Switch,
|
||||||
TextField,
|
TextField,
|
||||||
} from '@material-ui/core';
|
} from '@material-ui/core';
|
||||||
import CreateIcon from '@material-ui/icons/Create';
|
|
||||||
import { PictureThumbnail } from '../../../ui/components/PictureThumbnail';
|
|
||||||
|
|
||||||
interface ISettingItem {
|
interface ISettingItem {
|
||||||
options?: any;
|
options?: any;
|
||||||
@@ -110,14 +108,11 @@ export const SettingItemIconAction = ({
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
||||||
export const SettingItemModal = ({ icon, label, secondary, onClick }) => (
|
export const SettingItemInput = ({ icon, label, onChange }) => (
|
||||||
<ListItem divider>
|
<>
|
||||||
<ListItemIcon>{icon}</ListItemIcon>
|
<ListItem divider>
|
||||||
<ListItemText primary={label} secondary={secondary} />
|
<ListItemIcon>{icon}</ListItemIcon>
|
||||||
<ListItemSecondaryAction>
|
<TextField placeholder="Custom background" value={label} onChange={onChange} />
|
||||||
<IconButton onClick={onClick}>
|
</ListItem>
|
||||||
<CreateIcon />
|
</>
|
||||||
</IconButton>
|
|
||||||
</ListItemSecondaryAction>
|
|
||||||
</ListItem>
|
|
||||||
);
|
);
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useState } from 'react';
|
import React from 'react';
|
||||||
import { AppWrapper } from '../../../ui/components';
|
import { AppWrapper } from '../../../ui/components';
|
||||||
import { AppTitle } from '../../../ui/components/AppTitle';
|
import { AppTitle } from '../../../ui/components/AppTitle';
|
||||||
import { AppContent } from '../../../ui/components/AppContent';
|
import { AppContent } from '../../../ui/components/AppContent';
|
||||||
@@ -12,7 +12,7 @@ import {
|
|||||||
SettingItemIconAction,
|
SettingItemIconAction,
|
||||||
SettingItemSlider,
|
SettingItemSlider,
|
||||||
SettingSwitch,
|
SettingSwitch,
|
||||||
SettingItemModal,
|
SettingItemInput,
|
||||||
} from './SettingItem';
|
} from './SettingItem';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import VisibilityOffIcon from '@material-ui/icons/VisibilityOff';
|
import VisibilityOffIcon from '@material-ui/icons/VisibilityOff';
|
||||||
@@ -28,14 +28,14 @@ import {
|
|||||||
FileCopy,
|
FileCopy,
|
||||||
Book,
|
Book,
|
||||||
DeleteForever,
|
DeleteForever,
|
||||||
|
InsertPhoto,
|
||||||
} from '@material-ui/icons';
|
} from '@material-ui/icons';
|
||||||
import { makeStyles } from '@material-ui/core/styles';
|
|
||||||
import { ListSubheader } from '@material-ui/core';
|
import { ListSubheader } from '@material-ui/core';
|
||||||
import { useCustomWallpaperModal, useResetSettings, useSettings } from '../hooks/useSettings';
|
import { useResetSettings, useSettings } from '../hooks/useSettings';
|
||||||
import { setClipboard } from '../../../os/phone/hooks/useClipboard';
|
import { setClipboard } from '../../../os/phone/hooks/useClipboard';
|
||||||
import { useSnackbar } from '../../../ui/hooks/useSnackbar';
|
import { useSnackbar } from '../../../ui/hooks/useSnackbar';
|
||||||
import { IContextMenuOption } from '../../../ui/components/ContextMenu';
|
import { IContextMenuOption } from '../../../ui/components/ContextMenu';
|
||||||
import WallpaperModal from './WallpaperModal';
|
|
||||||
|
|
||||||
const SubHeaderComp = (props: { text: string }) => (
|
const SubHeaderComp = (props: { text: string }) => (
|
||||||
<ListSubheader color="primary" component="div" disableSticky>
|
<ListSubheader color="primary" component="div" disableSticky>
|
||||||
@@ -43,26 +43,12 @@ const SubHeaderComp = (props: { text: string }) => (
|
|||||||
</ListSubheader>
|
</ListSubheader>
|
||||||
);
|
);
|
||||||
|
|
||||||
const useStyles = makeStyles({
|
|
||||||
backgroundModal: {
|
|
||||||
background: 'black',
|
|
||||||
opacity: '0.6',
|
|
||||||
position: 'absolute',
|
|
||||||
top: 0,
|
|
||||||
left: 0,
|
|
||||||
right: 0,
|
|
||||||
bottom: 0,
|
|
||||||
zIndex: 5,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
export const SettingsApp = () => {
|
export const SettingsApp = () => {
|
||||||
const settingsApp = useApp('SETTINGS');
|
const settingsApp = useApp('SETTINGS');
|
||||||
const [config] = useConfig();
|
const [config] = useConfig();
|
||||||
const simcard = useSimcard();
|
const simcard = useSimcard();
|
||||||
const [settings, setSettings] = useSettings();
|
const [settings, setSettings] = useSettings();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { customWallpaperModal, setCustomWallpaperModal } = useCustomWallpaperModal();
|
|
||||||
|
|
||||||
const { addAlert } = useSnackbar();
|
const { addAlert } = useSnackbar();
|
||||||
|
|
||||||
@@ -138,13 +124,12 @@ export const SettingsApp = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const setCustomBackground = () => {};
|
||||||
|
|
||||||
const [openMenu, closeMenu, ContextMenu, isMenuOpen] = useContextMenu();
|
const [openMenu, closeMenu, ContextMenu, isMenuOpen] = useContextMenu();
|
||||||
const classes = useStyles();
|
|
||||||
return (
|
return (
|
||||||
<AppWrapper>
|
<AppWrapper>
|
||||||
<AppTitle app={settingsApp} />
|
<AppTitle app={settingsApp} />
|
||||||
<WallpaperModal />
|
|
||||||
<div className={customWallpaperModal ? classes.backgroundModal : undefined} />
|
|
||||||
<AppContent backdrop={isMenuOpen} onClickBackdrop={closeMenu}>
|
<AppContent backdrop={isMenuOpen} onClickBackdrop={closeMenu}>
|
||||||
<List disablePadding subheader={<SubHeaderComp text={t('SETTINGS.CATEGORY.PHONE')} />}>
|
<List disablePadding subheader={<SubHeaderComp text={t('SETTINGS.CATEGORY.PHONE')} />}>
|
||||||
<SettingItemIconAction
|
<SettingItemIconAction
|
||||||
@@ -211,14 +196,12 @@ export const SettingsApp = () => {
|
|||||||
value={settings.wallpaper.label}
|
value={settings.wallpaper.label}
|
||||||
options={wallpapers}
|
options={wallpapers}
|
||||||
onClick={openMenu}
|
onClick={openMenu}
|
||||||
icon={<Wallpaper />}
|
icon={<InsertPhoto />}
|
||||||
/>
|
/>
|
||||||
{/* CUSTOM BACKGROUND */}
|
<SettingItemInput
|
||||||
<SettingItemModal
|
label={settings.customBackground.value}
|
||||||
|
onChange={(e, val) => handleSettingChange('customBackground', val)}
|
||||||
icon={<Wallpaper />}
|
icon={<Wallpaper />}
|
||||||
label={t('APPS_SETTINGS_OPTIONS_CUSTOM_WALLPAPER')}
|
|
||||||
secondary={settings.customWallpaper}
|
|
||||||
onClick={() => setCustomWallpaperModal(true)}
|
|
||||||
/>
|
/>
|
||||||
<SettingItem
|
<SettingItem
|
||||||
label={t('APPS_SETTINGS_OPTION_FRAME')}
|
label={t('APPS_SETTINGS_OPTION_FRAME')}
|
||||||
|
|||||||
@@ -1,86 +0,0 @@
|
|||||||
import React, { useState } from 'react';
|
|
||||||
import Modal from '../../../ui/components/Modal';
|
|
||||||
import { useCustomWallpaperModal, useSettings } from '../hooks/useSettings';
|
|
||||||
import { Box, Button, TextField } from '@material-ui/core';
|
|
||||||
import { PictureThumbnail } from '../../../ui/components/PictureThumbnail';
|
|
||||||
import { useTranslation } from 'react-i18next';
|
|
||||||
import { makeStyles } from '@material-ui/core/styles';
|
|
||||||
import { StatusButton } from '../../../ui/components/StatusButton';
|
|
||||||
|
|
||||||
const useStyles = makeStyles({
|
|
||||||
input: {
|
|
||||||
marginTop: 10,
|
|
||||||
marginBottom: 10,
|
|
||||||
},
|
|
||||||
inputProps: {
|
|
||||||
fontSize: 18,
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
export default function WallpaperModal() {
|
|
||||||
const { customWallpaperModal, setCustomWallpaperModal } = useCustomWallpaperModal();
|
|
||||||
const [settings, setSettings] = useSettings();
|
|
||||||
const { t } = useTranslation();
|
|
||||||
const [value, setValue] = useState(settings.customWallpaper ? settings.customWallpaper : '');
|
|
||||||
const classes = useStyles();
|
|
||||||
|
|
||||||
const isImage = (url) => {
|
|
||||||
return /(http(s?):)([/|.|\w|\s|-])*\.(?:jpg|png|jpeg|gif)/g.test(url);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleCloseModal = () => {
|
|
||||||
setCustomWallpaperModal(false);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleSettingChange = (key: string | number, value: unknown) => {
|
|
||||||
setSettings({ ...settings, [key]: value });
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleNewWallpaper = () => {
|
|
||||||
handleSettingChange('customWallpaper', value);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleRemoveWallpaper = () => {
|
|
||||||
handleSettingChange('customWallpaper', '');
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Modal visible={customWallpaperModal} handleClose={handleCloseModal}>
|
|
||||||
<Box
|
|
||||||
display="flex"
|
|
||||||
justifyContent="center"
|
|
||||||
alignItems="center"
|
|
||||||
textAlign="center"
|
|
||||||
flexDirection="column"
|
|
||||||
>
|
|
||||||
{settings.customWallpaper && (
|
|
||||||
<PictureThumbnail src={settings.customWallpaper} alt="chipisbest" />
|
|
||||||
)}
|
|
||||||
<TextField
|
|
||||||
value={value}
|
|
||||||
variant="outlined"
|
|
||||||
className={classes.input}
|
|
||||||
onChange={(e) => setValue(e.currentTarget.value)}
|
|
||||||
inputProps={{
|
|
||||||
className: classes.inputProps,
|
|
||||||
}}
|
|
||||||
placeholder="Image URL"
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
color="primary"
|
|
||||||
variant="contained"
|
|
||||||
disabled={!isImage(value)}
|
|
||||||
onClick={handleNewWallpaper}
|
|
||||||
style={{ marginBottom: 10 }}
|
|
||||||
>
|
|
||||||
{t('APPS_SETTINGS_SET_CUSTOM_WALLPAPER')}
|
|
||||||
</Button>
|
|
||||||
{settings.customWallpaper && (
|
|
||||||
<StatusButton color="error" variant="contained" onClick={handleRemoveWallpaper}>
|
|
||||||
{t('GENERIC_DELETE')}
|
|
||||||
</StatusButton>
|
|
||||||
)}
|
|
||||||
</Box>
|
|
||||||
</Modal>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -23,7 +23,7 @@ const settingsSchema: Schema = {
|
|||||||
properties: {
|
properties: {
|
||||||
language: { $ref: '/SettingOption' },
|
language: { $ref: '/SettingOption' },
|
||||||
wallpaper: { $ref: '/SettingOption' },
|
wallpaper: { $ref: '/SettingOption' },
|
||||||
customWallpaper: { type: 'string' },
|
customBackground: { $ref: '/SettingOption' },
|
||||||
frame: { $ref: '/SettingOption' },
|
frame: { $ref: '/SettingOption' },
|
||||||
theme: { $ref: '/SettingOption' },
|
theme: { $ref: '/SettingOption' },
|
||||||
zoom: { $ref: '/SettingOption' },
|
zoom: { $ref: '/SettingOption' },
|
||||||
@@ -64,7 +64,7 @@ export function isSettingsSchemaValid(): boolean {
|
|||||||
export interface IPhoneSettings {
|
export interface IPhoneSettings {
|
||||||
language: SettingOption;
|
language: SettingOption;
|
||||||
wallpaper: SettingOption;
|
wallpaper: SettingOption;
|
||||||
customWallpaper: string;
|
customBackground: SettingOption;
|
||||||
frame: SettingOption;
|
frame: SettingOption;
|
||||||
theme: SettingOption;
|
theme: SettingOption;
|
||||||
zoom: SettingOption;
|
zoom: SettingOption;
|
||||||
@@ -112,11 +112,6 @@ export const settingsState = atom({
|
|||||||
effects_UNSTABLE: [localStorageEffect(NPWD_STORAGE_KEY)],
|
effects_UNSTABLE: [localStorageEffect(NPWD_STORAGE_KEY)],
|
||||||
});
|
});
|
||||||
|
|
||||||
const customWallpaperState = atom({
|
|
||||||
key: 'customWallpaperState',
|
|
||||||
default: false,
|
|
||||||
});
|
|
||||||
|
|
||||||
export const useSettings = () => {
|
export const useSettings = () => {
|
||||||
return useRecoilState(settingsState);
|
return useRecoilState(settingsState);
|
||||||
};
|
};
|
||||||
@@ -124,8 +119,3 @@ export const useSettings = () => {
|
|||||||
export const useResetSettings = () => {
|
export const useResetSettings = () => {
|
||||||
return useResetRecoilState(settingsState);
|
return useResetRecoilState(settingsState);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const useCustomWallpaperModal = () => {
|
|
||||||
const [customWallpaperModal, setCustomWallpaperModal] = useRecoilState(customWallpaperState);
|
|
||||||
return { customWallpaperModal, setCustomWallpaperModal };
|
|
||||||
};
|
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState, useEffect } from 'react';
|
||||||
import { Switch, Route } from 'react-router-dom';
|
import { Switch, Route } from 'react-router-dom';
|
||||||
import { makeStyles } from '@material-ui/core/styles';
|
import { makeStyles } from '@material-ui/core/styles';
|
||||||
|
|
||||||
|
import Nui from '../../../os/nui-events/utils/Nui';
|
||||||
import { AppWrapper } from '../../../ui/components';
|
import { AppWrapper } from '../../../ui/components';
|
||||||
import { AppContent } from '../../../ui/components/AppContent';
|
import { AppContent } from '../../../ui/components/AppContent';
|
||||||
import TweetListContainer from './tweet/TweetListContainer';
|
import TweetListContainer from './tweet/TweetListContainer';
|
||||||
@@ -77,7 +78,7 @@ export const TwitterApp = () => {
|
|||||||
InjectDebugData([
|
InjectDebugData([
|
||||||
{
|
{
|
||||||
app: 'TWITTER',
|
app: 'TWITTER',
|
||||||
method: TwitterEvents.GET_OR_CREATE_PROFILE,
|
method: 'getOrCreateTwitterProfile',
|
||||||
data: {
|
data: {
|
||||||
profile_name: 'Angular_Dev',
|
profile_name: 'Angular_Dev',
|
||||||
bio: 'Angular FTW',
|
bio: 'Angular FTW',
|
||||||
@@ -88,7 +89,7 @@ InjectDebugData([
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
app: 'TWITTER',
|
app: 'TWITTER',
|
||||||
method: TwitterEvents.FETCH_TWEETS,
|
method: 'fetchTweets',
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
id: 59,
|
id: 59,
|
||||||
@@ -149,7 +150,7 @@ InjectDebugData(
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
app: 'TWITTER',
|
app: 'TWITTER',
|
||||||
method: TwitterEvents.CREATE_TWEET_BROADCAST,
|
method: 'createTweetBroadcast',
|
||||||
data: {
|
data: {
|
||||||
id: 111,
|
id: 111,
|
||||||
profile_id: 111,
|
profile_id: 111,
|
||||||
@@ -161,7 +162,7 @@ InjectDebugData(
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
app: 'TWITTER',
|
app: 'TWITTER',
|
||||||
method: TwitterEvents.CREATE_TWEET_BROADCAST,
|
method: 'createTweetBroadcast',
|
||||||
data: {
|
data: {
|
||||||
id: 111,
|
id: 111,
|
||||||
profile_id: 111,
|
profile_id: 111,
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const useStyles = makeStyles(() => ({
|
|||||||
root: {
|
root: {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
bottom: '75px',
|
bottom: '75px',
|
||||||
right: '10px',
|
right: '15px',
|
||||||
},
|
},
|
||||||
button: {
|
button: {
|
||||||
background: '#00acee',
|
background: '#00acee',
|
||||||
|
|||||||
@@ -37,12 +37,7 @@ export const ShowMore = ({ id, isReported, isMine }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button aria-controls="simple-menu" aria-haspopup="true" onClick={_handleClick}>
|
||||||
aria-controls="simple-menu"
|
|
||||||
aria-haspopup="true"
|
|
||||||
onClick={_handleClick}
|
|
||||||
style={{ marginRight: 15 }}
|
|
||||||
>
|
|
||||||
<MoreIcon />
|
<MoreIcon />
|
||||||
</Button>
|
</Button>
|
||||||
<Menu
|
<Menu
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { twitterState } from './state';
|
|||||||
import { IAlert, useSnackbar } from '../../../ui/hooks/useSnackbar';
|
import { IAlert, useSnackbar } from '../../../ui/hooks/useSnackbar';
|
||||||
import { useTwitterNotifications } from './useTwitterNotifications';
|
import { useTwitterNotifications } from './useTwitterNotifications';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { Tweet, FormattedTweet, Profile, TwitterEvents } from '../../../../../typings/twitter';
|
import { Tweet, FormattedTweet, Profile } from '../../../../../typings/twitter';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Perform all necessary processing/transforms from the raw database
|
* Perform all necessary processing/transforms from the raw database
|
||||||
@@ -83,15 +83,15 @@ export const useTwitterService = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.GET_OR_CREATE_PROFILE, setProfile);
|
useNuiEvent(APP_TWITTER, 'getOrCreateTwitterProfile', setProfile);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.GET_OR_CREATE_PROFILE_NULL, setDefaultProfileNames);
|
useNuiEvent(APP_TWITTER, 'getOrCreateTwitterProfileNull', setDefaultProfileNames);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.CREATE_PROFILE_RESULT, handleAddAlert);
|
useNuiEvent(APP_TWITTER, 'phone:createProfileResult', handleAddAlert);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.UPDATE_PROFILE_LOADING, setUpdateProfileLoading);
|
useNuiEvent(APP_TWITTER, 'updateProfileLoading', setUpdateProfileLoading);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.UPDATE_PROFILE_RESULT, handleAddAlert);
|
useNuiEvent(APP_TWITTER, 'updateProfileResult', handleAddAlert);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.FETCH_TWEETS, _setTweets);
|
useNuiEvent(APP_TWITTER, 'fetchTweets', _setTweets);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.FETCH_TWEETS_FILTERED, _setFilteredTweets);
|
useNuiEvent(APP_TWITTER, 'fetchTweetsFiltered', _setFilteredTweets);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.CREATE_TWEET_LOADING, setCreateLoading);
|
useNuiEvent(APP_TWITTER, 'createTweetLoading', setCreateLoading);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.CREATE_TWEET_RESULT, handleAddAlert);
|
useNuiEvent(APP_TWITTER, 'createTweetResult', handleAddAlert);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.CREATE_TWEET_BROADCAST, handleTweetBroadcast);
|
useNuiEvent(APP_TWITTER, 'createTweetBroadcast', handleTweetBroadcast);
|
||||||
useNuiEvent(APP_TWITTER, TwitterEvents.RETWEET_EXISTS, handleAddAlert);
|
useNuiEvent(APP_TWITTER, 'phone:retweetExists', handleAddAlert);
|
||||||
};
|
};
|
||||||
@@ -144,7 +144,10 @@
|
|||||||
"label": "Project Error",
|
"label": "Project Error",
|
||||||
"value": "projecterror.jpg"
|
"value": "projecterror.jpg"
|
||||||
},
|
},
|
||||||
"customWallpaper": "",
|
"customBackground": {
|
||||||
|
"label": "https://beta.iodine.gg/58d1e.jpeg",
|
||||||
|
"value": "https://beta.iodine.gg/58d1e.jpeg"
|
||||||
|
},
|
||||||
"frame": {
|
"frame": {
|
||||||
"label": "Default",
|
"label": "Default",
|
||||||
"value": "default.png"
|
"value": "default.png"
|
||||||
@@ -191,10 +194,6 @@
|
|||||||
{
|
{
|
||||||
"label": "Default Light",
|
"label": "Default Light",
|
||||||
"value": "default-light"
|
"value": "default-light"
|
||||||
},
|
|
||||||
{
|
|
||||||
"label": "Kiddo Dark",
|
|
||||||
"value": "kiddo-dark"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"debug": {
|
"debug": {
|
||||||
|
|||||||
@@ -34,20 +34,5 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"divider": "rgba(255, 255, 255, 0.12)"
|
"divider": "rgba(255, 255, 255, 0.12)"
|
||||||
},
|
|
||||||
"kiddo-dark": {
|
|
||||||
"palette": {
|
|
||||||
"type": "dark",
|
|
||||||
"primary": {
|
|
||||||
"main": "#EBFEF3"
|
|
||||||
},
|
|
||||||
"secondary": {
|
|
||||||
"main": "#5E0035"
|
|
||||||
},
|
|
||||||
"background": {
|
|
||||||
"default": "#033A18",
|
|
||||||
"paper": "#011308"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -56,11 +56,7 @@
|
|||||||
"APPS_DIALER_ACCEPT_CALL": "Accept",
|
"APPS_DIALER_ACCEPT_CALL": "Accept",
|
||||||
"APPS_DIALER_REJECT_CALL": "Reject",
|
"APPS_DIALER_REJECT_CALL": "Reject",
|
||||||
"APPS_DIALER_END_CALL": "End",
|
"APPS_DIALER_END_CALL": "End",
|
||||||
"APPS_DIALER_INPUT_PLACEHOLDER": "Enter a number",
|
|
||||||
"APPS_DIALER_NO_HISTORY": "You have no call history",
|
"APPS_DIALER_NO_HISTORY": "You have no call history",
|
||||||
"APPS_DIALER_NAVBAR_HISTORY": "History",
|
|
||||||
"APPS_DIALER_NAVBAR_DIAL": "Dial",
|
|
||||||
"APPS_DIALER_NAVBAR_CONTACTS": "Contacts",
|
|
||||||
|
|
||||||
"APPS_TWITTER_TWEET": "Tweet",
|
"APPS_TWITTER_TWEET": "Tweet",
|
||||||
"APPS_TWITTER_TWEET_MESSAGE_PLACEHOLDER": "What's happening?",
|
"APPS_TWITTER_TWEET_MESSAGE_PLACEHOLDER": "What's happening?",
|
||||||
@@ -149,9 +145,6 @@
|
|||||||
"APPS_MESSAGES_MESSAGE_GROUP_DUPLICATE": "This message group already exists",
|
"APPS_MESSAGES_MESSAGE_GROUP_DUPLICATE": "This message group already exists",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_FAILED": "Failed to create message group",
|
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_FAILED": "Failed to create message group",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_MINE": "You cannot add yourself!",
|
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_MINE": "You cannot add yourself!",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_ALL_NUMBERS_FAILED": "None of the phone numbers could be found!",
|
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_ONE_NUMBER_FAILED": "{{ number }} is not a registered number",
|
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_SOME_NUMBERS_FAILED": "({{ numbers }}) are not registered numbers.",
|
|
||||||
"APPS_MESSAGES_INPUT_NAME_OR_NUMBER": "Search contacts or type number and press enter",
|
"APPS_MESSAGES_INPUT_NAME_OR_NUMBER": "Search contacts or type number and press enter",
|
||||||
"APPS_MESSAGES_UNREAD_MESSAGES": "You have {{ count }} unread messages",
|
"APPS_MESSAGES_UNREAD_MESSAGES": "You have {{ count }} unread messages",
|
||||||
"APPS_MESSAGES_MEMBERS_TITLE": "Members",
|
"APPS_MESSAGES_MEMBERS_TITLE": "Members",
|
||||||
@@ -184,7 +177,6 @@
|
|||||||
|
|
||||||
"APPS_SETTINGS_PHONE_NUMBER": "Phone Number",
|
"APPS_SETTINGS_PHONE_NUMBER": "Phone Number",
|
||||||
"APPS_SETTINGS_OPTION_WALLPAPER": "Wallpaper",
|
"APPS_SETTINGS_OPTION_WALLPAPER": "Wallpaper",
|
||||||
"APPS_SETTINGS_OPTIONS_CUSTOM_WALLPAPER": "Custom Wallpaper",
|
|
||||||
"APPS_SETTINGS_OPTION_FRAME": "Frame",
|
"APPS_SETTINGS_OPTION_FRAME": "Frame",
|
||||||
"APPS_SETTINGS_OPTION_THEME": "Theme",
|
"APPS_SETTINGS_OPTION_THEME": "Theme",
|
||||||
"APPS_SETTINGS_OPTION_ZOOM": "Zoom",
|
"APPS_SETTINGS_OPTION_ZOOM": "Zoom",
|
||||||
@@ -195,24 +187,18 @@
|
|||||||
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notification",
|
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notification",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Notification Volume",
|
"APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Notification Volume",
|
||||||
"APPS_SETTING_STREAMER_MODE_DESC": "Hide images before they are shown",
|
"APPS_SETTING_STREAMER_MODE_DESC": "Hide images before they are shown",
|
||||||
"APPS_SETTINGS_SET_CUSTOM_WALLPAPER": "Set new wallpaper",
|
|
||||||
|
|
||||||
"APPS_MARKETPLACE_CREATE_LISTING_SUCCESS": "Successfully created a new listing",
|
"APPS_MARKETPLACE_CREATE_LISTING_SUCCESS": "Successfully created a new listing",
|
||||||
"APPS_MARKETPLACE_CREATE_LISTING_FAILED": "Failed to create a new listing",
|
"APPS_MARKETPALCE_CREATE_LISTING_FAILED": "Failed to create a new listing",
|
||||||
"APPS_MARKETPLACE_DELETE_LISTING_SUCCESS": "Successfully delete listing",
|
"APPS_MARKETPLACE_DELETE_LISTING_SUCCESS": "Successfully delete listing",
|
||||||
"APPS_MARKETPLACE_DELETE_LISTING_FAILED": "Failed to delete listing",
|
"APPS_MARKETPLACE_DELETE_LISTING_FAILED": "Failed to delete listing",
|
||||||
"APPS_MARKETPLACE_REPORT_LISTING_FAILED": "This listing has already been reported",
|
"APPS_MARKETPLACE_REPORT_LISTING_FAILED": "This listing has already been reported",
|
||||||
"APPS_MARKETPLACE_REPORT_LISTING_SUCCESS": "Successfully reported listing",
|
"APPS_MARKETPLACE_REPORT_LISTING_SUCCESS": "Successfully reported listing",
|
||||||
"APPS_MARKETPLACE_REQUIRED_FIELDS": "All required fields must be filled!",
|
|
||||||
"APPS_MARKETPLACE_FORM_TITLE": "Title",
|
|
||||||
"APPS_MARKETPLACE_FORM_IMAGE": "Image or URL",
|
|
||||||
"APPS_MARKETPLACE_FORM_DESCRIPTION": "Description",
|
|
||||||
|
|
||||||
"GENERIC_CLICK_TO_REVEAL": "Click to reveal",
|
"GENERIC_CLICK_TO_REVEAL": "Click to reveal",
|
||||||
"GENERIC_WAIT": "Please wait...",
|
"GENERIC_WAIT": "Please wait...",
|
||||||
"GENERIC_SAVE": "Save",
|
"GENERIC_SAVE": "Save",
|
||||||
"GENERIC_UPDATE": "Update",
|
"GENERIC_UPDATE": "Update",
|
||||||
"GENERIC_REQUIRED": "Required",
|
|
||||||
"GENERIC_DELETE": "Delete",
|
"GENERIC_DELETE": "Delete",
|
||||||
"GENERIC_REPORT": "Report",
|
"GENERIC_REPORT": "Report",
|
||||||
"GENERIC_CALL": "Call",
|
"GENERIC_CALL": "Call",
|
||||||
|
|||||||
+15
-83
@@ -2,37 +2,6 @@
|
|||||||
"translation": {
|
"translation": {
|
||||||
"DATE_FORMAT": "DD/MM/YYYY",
|
"DATE_FORMAT": "DD/MM/YYYY",
|
||||||
"DATE_TIME_FORMAT": "DD/MM/YYYY HH:MM",
|
"DATE_TIME_FORMAT": "DD/MM/YYYY HH:MM",
|
||||||
"SETTINGS": {
|
|
||||||
"CATEGORY": {
|
|
||||||
"APPEARANCE": "Utseende",
|
|
||||||
"PHONE": "Telefon",
|
|
||||||
"ACTIONS": "Handlinger"
|
|
||||||
},
|
|
||||||
"OPTIONS": {
|
|
||||||
"LANGUAGE": "Språk",
|
|
||||||
"RESET_SETTINGS": "Reset Settings",
|
|
||||||
"RESET_SETTINGS_DESC": "Dette vil slette all lagret data"
|
|
||||||
},
|
|
||||||
"MESSAGES": {
|
|
||||||
"INVALID_SETTINGS": "Invalid stored settings! Please reset in the Settings App.",
|
|
||||||
"SETTINGS_RESET": "Instillinger har blitt tilbakestilt"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"RELATIVE_TIME": {
|
|
||||||
"future": "om %s",
|
|
||||||
"past": "%s siden",
|
|
||||||
"s": "om få sekunder",
|
|
||||||
"m": "ett minutt",
|
|
||||||
"mm": "%d minutter",
|
|
||||||
"h": "en time",
|
|
||||||
"hh": "%d timer",
|
|
||||||
"d": "en dag",
|
|
||||||
"dd": "%d dager",
|
|
||||||
"M": "en måned",
|
|
||||||
"MM": "%d måneder",
|
|
||||||
"y": "ett år",
|
|
||||||
"yy": "%d år"
|
|
||||||
},
|
|
||||||
|
|
||||||
"COMING_SOON": "Kommer snart...",
|
"COMING_SOON": "Kommer snart...",
|
||||||
"INITIALIZING": "Starter",
|
"INITIALIZING": "Starter",
|
||||||
@@ -56,10 +25,9 @@
|
|||||||
"APPS_DIALER_ACCEPT_CALL": "Svar",
|
"APPS_DIALER_ACCEPT_CALL": "Svar",
|
||||||
"APPS_DIALER_REJECT_CALL": "Avvis",
|
"APPS_DIALER_REJECT_CALL": "Avvis",
|
||||||
"APPS_DIALER_END_CALL": "Legg på",
|
"APPS_DIALER_END_CALL": "Legg på",
|
||||||
"APPS_DIALER_NO_HISTORY": "Du har ingen historikk",
|
|
||||||
|
|
||||||
"APPS_TWITTER_TWEET": "Tweet",
|
"APPS_TWITTER_TWEET": "Tweet",
|
||||||
"APPS_TWITTER_TWEET_MESSAGE_PLACEHOLDER": "Hva skjer'a brur?",
|
"APPS_TWITTER_TWEET_MESSAGE_PLACEHOLDER": "Hva skjer'a",
|
||||||
"APPS_TWITTER_IMAGE_PLACEHOLDER": "En link med bilde ditt",
|
"APPS_TWITTER_IMAGE_PLACEHOLDER": "En link med bilde ditt",
|
||||||
"APPS_TWITTER_SUBMIT_IMAGE": "Legg til media",
|
"APPS_TWITTER_SUBMIT_IMAGE": "Legg til media",
|
||||||
"APPS_TWITTER_CLOSE_IMAGE": "Lukk",
|
"APPS_TWITTER_CLOSE_IMAGE": "Lukk",
|
||||||
@@ -68,7 +36,7 @@
|
|||||||
"APPS_TWITTER_REPORT": "Rapporter",
|
"APPS_TWITTER_REPORT": "Rapporter",
|
||||||
"APPS_TWITTER_REPORTED": "Rapportert",
|
"APPS_TWITTER_REPORTED": "Rapportert",
|
||||||
"APPS_TWITTER_RETWEETED": "Retweeted",
|
"APPS_TWITTER_RETWEETED": "Retweeted",
|
||||||
"APPS_TWITTER_JUST_NOW": "Akkurat nå",
|
"APPS_TWITTER_JUST_NOW": "Akkuratt nå",
|
||||||
"APPS_TWITTER_SEARCH_TWEETS": "Søk etter tweets",
|
"APPS_TWITTER_SEARCH_TWEETS": "Søk etter tweets",
|
||||||
"APPS_TWITTER_SEARCH_TWEETS_PLACEHOLDER": "Søk etter profil eller melding",
|
"APPS_TWITTER_SEARCH_TWEETS_PLACEHOLDER": "Søk etter profil eller melding",
|
||||||
"APPS_TWITTER_TWEET_MESSAGE_CHAR_LIMIT": "Meldingen er over grensen",
|
"APPS_TWITTER_TWEET_MESSAGE_CHAR_LIMIT": "Meldingen er over grensen",
|
||||||
@@ -77,16 +45,13 @@
|
|||||||
"APPS_TWITTER_CREATE_FAILED": "Mislykket tweet",
|
"APPS_TWITTER_CREATE_FAILED": "Mislykket tweet",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_AVATAR": "Avatar URL",
|
"APPS_TWITTER_EDIT_PROFILE_AVATAR": "Avatar URL",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_NAME": "Brukernavn",
|
"APPS_TWITTER_EDIT_PROFILE_NAME": "Brukernavn",
|
||||||
"APPS_TWITTER_EDIT_DEFAULT_PROFILE_NAME": "Velg brukernavn",
|
|
||||||
"APPS_TWITTER_EDIT_PROFILE_BIO": "Bio",
|
"APPS_TWITTER_EDIT_PROFILE_BIO": "Bio",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_LOCATION": "Lokasjon",
|
"APPS_TWITTER_EDIT_PROFILE_LOCATION": "Lokasjon",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_JOB": "Jobb",
|
"APPS_TWITTER_EDIT_PROFILE_JOB": "Jobb",
|
||||||
"APPS_TWITTER_CREATE_PROFILE_SUCCESS": "Profilen din er blitt opprettet",
|
|
||||||
"APPS_TWITTER_CREATE_PROFILE_FAILURE": "Klarte ikke opprette profilen",
|
|
||||||
"APPS_TWITTER_EDIT_PROFILE_SUCCESS": "Profilen din har blitt oppdatert",
|
"APPS_TWITTER_EDIT_PROFILE_SUCCESS": "Profilen din har blitt oppdatert",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_FAILURE": "Klarte ikke å oppdatere profilen",
|
"APPS_TWITTER_EDIT_PROFILE_FAILURE": "Klarte ikke å oppdatere profilen",
|
||||||
"APPS_TWITTER_RETWEET_EXISTS": "Du har akkurat retvitret denne tweeten!",
|
"APPS_TWITTER_RETWEET_EXISTS": "Du har akkuratt retvitret denne tweeten",
|
||||||
"APPS_TWITTER_TIME_JUST_NOW": "Akkurat nå",
|
"APPS_TWITTER_TIME_JUST_NOW": "Akkuratt nå",
|
||||||
"APPS_TWITTER_TIME_MINUTES": "m",
|
"APPS_TWITTER_TIME_MINUTES": "m",
|
||||||
"APPS_TWITTER_TIME_HOURS": "t",
|
"APPS_TWITTER_TIME_HOURS": "t",
|
||||||
"APPS_TWITTER_TIME_DAYS": "d",
|
"APPS_TWITTER_TIME_DAYS": "d",
|
||||||
@@ -94,41 +59,11 @@
|
|||||||
"APPS_TWITTER_NEW_RETWEET_BROADCAST": "@{{ profile_name }} retvitret noen!",
|
"APPS_TWITTER_NEW_RETWEET_BROADCAST": "@{{ profile_name }} retvitret noen!",
|
||||||
"APPS_TWITTER_UNREAD_MESSAGES": "Du har {{ count }} nye tweets siden sist",
|
"APPS_TWITTER_UNREAD_MESSAGES": "Du har {{ count }} nye tweets siden sist",
|
||||||
|
|
||||||
"APPS_MATCH": "Matchmaker",
|
|
||||||
"APPS_MATCH_LIKED": "LIKE",
|
|
||||||
"APPS_MATCH_NOPE": "NOPE",
|
|
||||||
"APPS_MATCH_LIKE": "LIKE",
|
|
||||||
"APPS_MATCH_DISLIKE": "NOPE",
|
|
||||||
"APPS_MATCH_NO_PROFILES": "Ingen profiler funnet",
|
|
||||||
"APPS_MATCH_NO_MATCHES": "Fant ingen matches",
|
|
||||||
"APPS_MATCH_PROFILES_ERROR": "Klarte ikke laste profiler",
|
|
||||||
"APPS_MATCH_MATCHES_ERROR": "Klarte ikke laste matches",
|
|
||||||
"APPS_MATCH_PROFILE_CONFIGURATION": "Appen er ikke konfigurert riktig - kan ikke lage profil. Kontakt staten!",
|
|
||||||
"APPS_MATCH_MY_PROFILE_ERROR": "Kunne ikke lage profil!",
|
|
||||||
"APPS_MATCH_PROFILE_LAST_ACTIVE": "Sist kåt: {{ lastActive }}",
|
|
||||||
"APPS_MATCH_PROFILE_MATCHED_AT": "Matched: {{ matchedAt }}",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_PREVIEW": "Forhåndsvis",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_IMAGE": "Bilde URL",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_NAME": "Brukernavn",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_BIO": "Beskrivelse",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_LOCATION": "Plassering",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_JOB": "Jobb",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_TAGS": "Emneknagger",
|
|
||||||
"APPS_MATCH_GET_MY_PROFILE_FAILED": "Kunne ikke hente spillers profil",
|
|
||||||
"APPS_MATCH_GET_PROFILES_FAILED": "Kunne ikke laster profiler",
|
|
||||||
"APPS_MATCH_GET_MATCHES_FAILED": "Kunne ikke laste matches",
|
|
||||||
"APPS_MATCH_UPDATE_PROFILE_SUCCEEDED": "Profil opppdatert",
|
|
||||||
"APPS_MATCH_UPDATE_PROFILE_FAILED": "Klarte ikke oppdatere profil",
|
|
||||||
"APPS_MATCH_CREATE_PROFILE_FAILED": "Klarte ikke lage profil",
|
|
||||||
"APPS_MATCH_SAVE_LIKES_FAILED": "Kunne ikke lagre likes",
|
|
||||||
"APPS_MATCH_SAVE_LIKES_SUCCEDED": "Larget likes",
|
|
||||||
"APPS_MATCH_NEW_LIKE_FOUND": "Ny match!",
|
|
||||||
|
|
||||||
"APPS_BANK_TRANSFER": "Overføring",
|
"APPS_BANK_TRANSFER": "Overføring",
|
||||||
"APPS_BANK_HOME_TITLE": "Velkommen",
|
"APPS_BANK_HOME_TITLE": "Velkommen",
|
||||||
"APPS_BANK_ACCOUNT_LINK": "Konto",
|
"APPS_BANK_ACCOUNT_LINK": "Konto",
|
||||||
"APPS_BANK_TIME_JUST_NOW": "Akkurat nå",
|
"APPS_BANK_TIME_JUST_NOW": "Akkuratt nå",
|
||||||
"APPS_BANK_ACCOUNT_TITLE": "Kontooversikt",
|
"APPS_BANK_ACCOUNT_TITLE": "Konto oversikt",
|
||||||
"APPS_BANK_ACCOUNT_TRANSACTIONS": "Transaksjoner",
|
"APPS_BANK_ACCOUNT_TRANSACTIONS": "Transaksjoner",
|
||||||
"APPS_BANK_ACCOUNT_SEE_TRANSACTION": "Se alt",
|
"APPS_BANK_ACCOUNT_SEE_TRANSACTION": "Se alt",
|
||||||
"APPS_BANK_ACTIONS_TRANSFER": "Overføring",
|
"APPS_BANK_ACTIONS_TRANSFER": "Overføring",
|
||||||
@@ -138,14 +73,14 @@
|
|||||||
"APPS_MESSAGES_SEARCH_PLACEHOLDER": "Søk etter meldinger...",
|
"APPS_MESSAGES_SEARCH_PLACEHOLDER": "Søk etter meldinger...",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE": "Melding...",
|
"APPS_MESSAGES_NEW_MESSAGE": "Melding...",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE_FAILED:": "Kunne ikke sende melding",
|
"APPS_MESSAGES_NEW_MESSAGE_FAILED:": "Kunne ikke sende melding",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE_GROUP": "Telefonnummer...",
|
"APPS_MESSAGES_NEW_MESSAGE_GROUP": "Telefonnummre...",
|
||||||
"APPS_MESSAGES_GROUP_CHAT_LABEL": "Navn på gruppe...",
|
"APPS_MESSAGES_GROUP_CHAT_LABEL": "Gruppesamtale navn...",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE_GROUP_SUBMIT": "Send",
|
"APPS_MESSAGES_NEW_MESSAGE_GROUP_SUBMIT": "Send",
|
||||||
"APPS_MESSAGES_INVALID_PHONE_NUMBER": "Feil telefonnummer",
|
"APPS_MESSAGES_INVALID_PHONE_NUMBER": "Inkorrekt telefonnummer",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_DUPLICATE": "Denne gruppesamtalen er allerede opprettet",
|
"APPS_MESSAGES_MESSAGE_GROUP_DUPLICATE": "Denne gruppesamtalen er allerede opprettet",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_FAILED": "Kunne ikke opprette gruppesamtale",
|
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_FAILED": "Kunne ikke opprette gruppesamtale",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_MINE": "Du kan ikke legge til deg selv!",
|
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_MINE": "Du kan ikke legge til deg selv!",
|
||||||
"APPS_MESSAGES_INPUT_NAME_OR_NUMBER": "Søk etter kontakter eller skriv ett nummer og trykk enter",
|
"APPS_MESSAGES_INPUT_NAME_OR_NUMBER": "Søk etter kontakter eller skriv ett number og trykk enter",
|
||||||
"APPS_MESSAGES_UNREAD_MESSAGES": "Du har {{ count }} uleste meldinger",
|
"APPS_MESSAGES_UNREAD_MESSAGES": "Du har {{ count }} uleste meldinger",
|
||||||
"APPS_MESSAGES_MEMBERS_TITLE": "Medlemmer",
|
"APPS_MESSAGES_MEMBERS_TITLE": "Medlemmer",
|
||||||
"APPS_MESSAGES_ME": "Meg",
|
"APPS_MESSAGES_ME": "Meg",
|
||||||
@@ -173,29 +108,26 @@
|
|||||||
"APPS_NOTES_DELETE_SUCCESS": "Slettet notat!",
|
"APPS_NOTES_DELETE_SUCCESS": "Slettet notat!",
|
||||||
"APPS_NOTES_DELETE_FAILED": "Kunne ikke slette notatet!",
|
"APPS_NOTES_DELETE_FAILED": "Kunne ikke slette notatet!",
|
||||||
|
|
||||||
"APPS_CALCULATOR_COPIED": "Teskten ble kopiert",
|
"APPS_CALCULATOR_COPIED": "Teskten ble kopiert til utklippstavle",
|
||||||
|
|
||||||
"APPS_SETTINGS_PHONE_NUMBER": "Telefonnummer",
|
"APPS_SETTINGS_PHONE_NUMBER": "Telefonnummer",
|
||||||
"APPS_SETTINGS_OPTION_WALLPAPER": "Bakgrunn",
|
"APPS_SETTINGS_OPTION_WALLPAPER": "Bakgrunn",
|
||||||
"APPS_SETTINGS_OPTION_FRAME": "Deksel",
|
"APPS_SETTINGS_OPTION_FRAME": "Deksel",
|
||||||
"APPS_SETTINGS_OPTION_THEME": "Tema",
|
"APPS_SETTINGS_OPTION_THEME": "Utseende",
|
||||||
"APPS_SETTINGS_OPTION_ZOOM": "Forstørrelse",
|
"APPS_SETTINGS_OPTION_ZOOM": "Zoom",
|
||||||
"APPS_SETTINGS_OPTION_STREAMER_MODE": "Strømmemodus",
|
|
||||||
"APPS_SETTINGS_OPTION_RINGTONE": "Ringetone",
|
"APPS_SETTINGS_OPTION_RINGTONE": "Ringetone",
|
||||||
"APPS_SETTINGS_OPTION_RINGTONEVOL": "Ringetone Volum",
|
"APPS_SETTINGS_OPTION_RINGTONEVOL": "Ringetone Volum",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATION_FILTER": "Filtrer notifikasjoner",
|
"APPS_SETTINGS_OPTION_NOTIFICATION_FILTER": "Filtrer notifikasjoner",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notifikasjon",
|
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notifikasjon",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Notifikasjons Volum",
|
"APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Notifikasjons Volum",
|
||||||
"APPS_SETTING_STREAMER_MODE_DESC": "Skjul bilder før de vises",
|
|
||||||
|
|
||||||
"APPS_MARKETPLACE_CREATE_LISTING_SUCCESS": "Opprettet ny annonse!",
|
"APPS_MARKETPLACE_CREATE_LISTING_SUCCESS": "Opprettet ny annonse!",
|
||||||
"APPS_MARKETPALCE_CREATE_LISTING_FAILED": "Kunne ikke opprette annonse!",
|
"APPS_MARKETPALCE_CREATE_LISTING_FAILED": "Kunne ikke opprette annonse!",
|
||||||
"APPS_MARKETPLACE_DELETE_LISTING_SUCCESS": "Slettet annonse!",
|
"APPS_MARKETPLACE_DELETE_LISTING_SUCCESS": "Slettet annonse!",
|
||||||
"APPS_MARKETPLACE_DELETE_LISTING_FAILED": "Kunne ikke opprette annonse!",
|
"APPS_MARKETPLACE_DELETE_LISTING_FAILED": "Kunne ikke opprette annonse!",
|
||||||
"APPS_MARKETPLACE_REPORT_LISTING_FAILED": "Annonsen har allerede blitt rapportet",
|
"APPS_MARKETPLACE_REPORT_LISTING_FAILED": "Annonsen har allerede blitt rapportet",
|
||||||
"APPS_MARKETPLACE_REPORT_LISTING_SUCCESS": "Annonsen er rapportert",
|
"APPS_MARKETPLACE_REPORT_LISTING_SUCCESS": "Annosen ble rapportet",
|
||||||
|
|
||||||
"GENERIC_CLICK_TO_REVEAL": "Trykk for å se",
|
|
||||||
"GENERIC_WAIT": "Vennligst vent...",
|
"GENERIC_WAIT": "Vennligst vent...",
|
||||||
"GENERIC_SAVE": "Lagre",
|
"GENERIC_SAVE": "Lagre",
|
||||||
"GENERIC_UPDATE": "Oppdater",
|
"GENERIC_UPDATE": "Oppdater",
|
||||||
@@ -208,6 +140,6 @@
|
|||||||
"GENERIC_TITLE": "Tittel",
|
"GENERIC_TITLE": "Tittel",
|
||||||
"GENERIC_CONTENT": "Innhold",
|
"GENERIC_CONTENT": "Innhold",
|
||||||
"GENERIC_WRITE_TO_CLIPBOARD_TOOLTIP": "Kopier {{ content }}",
|
"GENERIC_WRITE_TO_CLIPBOARD_TOOLTIP": "Kopier {{ content }}",
|
||||||
"GENERIC_WRITE_TO_CLIPBOARD_MESSAGE": "Kopiert {{content}}!"
|
"GENERIC_WRITE_TO_CLIPBOARD_MESSAGE": "Kopiert {{content}} to clipboard!"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+43
-125
@@ -1,38 +1,7 @@
|
|||||||
{
|
{
|
||||||
"translation": {
|
"translation": {
|
||||||
"DATE_FORMAT": "DD/MM/YYYY",
|
"DATE_FORMAT": "MM/DD/YYYY",
|
||||||
"DATE_TIME_FORMAT": "DD/MM/YYYY hh:mm A",
|
"DATE_TIME_FORMAT": "MM/DD/YYYY hh:mm A",
|
||||||
"SETTINGS": {
|
|
||||||
"CATEGORY": {
|
|
||||||
"APPEARANCE": "Aparência",
|
|
||||||
"PHONE": "Telefone",
|
|
||||||
"ACTIONS": "Ações"
|
|
||||||
},
|
|
||||||
"OPTIONS": {
|
|
||||||
"LANGUAGE": "Idioma",
|
|
||||||
"RESET_SETTINGS": "Redefinir as configurações",
|
|
||||||
"RESET_SETTINGS_DESC": "Isso limpará seus dados armazenados localmente"
|
|
||||||
},
|
|
||||||
"MESSAGES": {
|
|
||||||
"INVALID_SETTINGS": "Configurações armazenadas inválidas! Redefina no aplicativo Configurações.",
|
|
||||||
"SETTINGS_RESET": "As configurações foram redefinidas!"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"RELATIVE_TIME": {
|
|
||||||
"future": "em %s",
|
|
||||||
"past": "%s atrás",
|
|
||||||
"s": "alguns segundos",
|
|
||||||
"m": "um minuto",
|
|
||||||
"mm": "%d minutos",
|
|
||||||
"h": "uma hora",
|
|
||||||
"hh": "%d horas",
|
|
||||||
"d": "um dia",
|
|
||||||
"dd": "%d dias",
|
|
||||||
"M": "um mês",
|
|
||||||
"MM": "%d meses",
|
|
||||||
"y": "um ano",
|
|
||||||
"yy": "%d anos"
|
|
||||||
},
|
|
||||||
|
|
||||||
"COMING_SOON": "Em breve...",
|
"COMING_SOON": "Em breve...",
|
||||||
"INITIALIZING": "Inicializando",
|
"INITIALIZING": "Inicializando",
|
||||||
@@ -41,38 +10,32 @@
|
|||||||
"APPS_CONTACTS": "Contatos",
|
"APPS_CONTACTS": "Contatos",
|
||||||
"APPS_MESSAGES": "Mensagens",
|
"APPS_MESSAGES": "Mensagens",
|
||||||
"APPS_CALCULATOR": "Calculadora",
|
"APPS_CALCULATOR": "Calculadora",
|
||||||
"APPS_SETTINGS": "Configurações",
|
"APPS_SETTINGS": "Configurações",
|
||||||
"APPS_BANK": "Banco WhoDis",
|
"APPS_BANK": "Banco WhoDis",
|
||||||
"APPS_NOTES": "Notas",
|
"APPS_NOTES": "Notas",
|
||||||
"APPS_EXAMPLE": "Aplicativo de exemplo",
|
"APPS_EXAMPLE": "Aplicativo de exemplo",
|
||||||
"APPS_TWITTER": "Twitter",
|
"APPS_TWITTER": "Twitter",
|
||||||
"APPS_SELLOUT": "Mercado",
|
"APPS_SELLOUT": "Market",
|
||||||
"APPS_CAMERA": "Camera",
|
"APPS_CAMERA": "Camera",
|
||||||
|
|
||||||
"APPS_DIALER_INCOMING_CALL_TITLE": "Ligação",
|
"APPS_DIALER_INCOMING_CALL_TITLE": "Ligaçao",
|
||||||
"APPS_DIALER_CURRENT_CALL_TITLE": "Chamada atual",
|
"APPS_DIALER_CURRENT_CALL_TITLE": "Chamada atual",
|
||||||
"APPS_DIALER_CURRENT_CALL_WITH": "Em ligação com {{ transmitter }}",
|
"APPS_DIALER_CURRENT_CALL_WITH": "Em ligaçao com {{ transmitter }}",
|
||||||
"APPS_DIALER_TRANSMITTER_IS_CALLING": "{{ transmitter }} Esta te ligando!",
|
"APPS_DIALER_TRANSMITTER_IS_CALLING": "{{ transmitter }} Esta te ligando!",
|
||||||
"APPS_DIALER_ACCEPT_CALL": "Atender",
|
"APPS_DIALER_ACCEPT_CALL": "Atender",
|
||||||
"APPS_DIALER_REJECT_CALL": "Rejeitar",
|
"APPS_DIALER_REJECT_CALL": "Desligar",
|
||||||
"APPS_DIALER_END_CALL": "Fim",
|
"APPS_DIALER_END_CALL": "Fim",
|
||||||
"APPS_DIALER_INPUT_PLACEHOLDER": "Insira um númeror",
|
|
||||||
"APPS_DIALER_NO_HISTORY": "Você não tem histórico de chamadas",
|
|
||||||
"APPS_DIALER_NAVBAR_HISTORY": "Histórico",
|
|
||||||
"APPS_DIALER_NAVBAR_DIAL": "Discar",
|
|
||||||
"APPS_DIALER_NAVBAR_CONTACTS": "Contatos",
|
|
||||||
|
|
||||||
"APPS_TWITTER_TWEET": "Tweet",
|
"APPS_TWITTER_TWEET": "Tweet",
|
||||||
"APPS_TWITTER_TWEET_MESSAGE_PLACEHOLDER": "O que está acontecendo?",
|
"APPS_TWITTER_TWEET_MESSAGE_PLACEHOLDER": "O que está acontecendo?",
|
||||||
"APPS_TWITTER_IMAGE_PLACEHOLDER": "Link da sua foto de perfil",
|
"APPS_TWITTER_IMAGE_PLACEHOLDER": "Link para sua foto de perfil",
|
||||||
"APPS_TWITTER_SUBMIT_IMAGE": "Adcionar foto",
|
"APPS_TWITTER_SUBMIT_IMAGE": "Adcionar foto",
|
||||||
"APPS_TWITTER_CLOSE_IMAGE": "Fechar",
|
"APPS_TWITTER_CLOSE_IMAGE": "Fechar",
|
||||||
"APPS_TWITTER_CLOSE": "Fechar",
|
"APPS_TWITTER_CLOSE": "Fechar",
|
||||||
"APPS_TWITTER_DELETE": "Deletar",
|
"APPS_TWITTER_DELETE": "Deletar",
|
||||||
"APPS_TWITTER_REPORT": "Reportar",
|
"APPS_TWITTER_REPORT": "Reportar",
|
||||||
"APPS_TWITTER_REPORTED": " Reportado",
|
"APPS_TWITTER_REPORTED": " Reportado",
|
||||||
"APPS_TWITTER_RETWEETED": "Retweetado",
|
"APPS_TWITTER_JUST_NOW": "Agora",
|
||||||
"APPS_TWITTER_JUST_NOW": "Agora Mesmo",
|
|
||||||
"APPS_TWITTER_SEARCH_TWEETS": "Procurar por tweets",
|
"APPS_TWITTER_SEARCH_TWEETS": "Procurar por tweets",
|
||||||
"APPS_TWITTER_SEARCH_TWEETS_PLACEHOLDER": "Procurar por nome de perfil ou mensagem",
|
"APPS_TWITTER_SEARCH_TWEETS_PLACEHOLDER": "Procurar por nome de perfil ou mensagem",
|
||||||
"APPS_TWITTER_TWEET_MESSAGE_CHAR_LIMIT": "Mensagem está ultrapassando o limite de caracteres",
|
"APPS_TWITTER_TWEET_MESSAGE_CHAR_LIMIT": "Mensagem está ultrapassando o limite de caracteres",
|
||||||
@@ -81,52 +44,34 @@
|
|||||||
"APPS_TWITTER_CREATE_FAILED": "Seu tweet não foi enviado",
|
"APPS_TWITTER_CREATE_FAILED": "Seu tweet não foi enviado",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_AVATAR": "URL do Avatar",
|
"APPS_TWITTER_EDIT_PROFILE_AVATAR": "URL do Avatar",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_NAME": "Nome de perfil",
|
"APPS_TWITTER_EDIT_PROFILE_NAME": "Nome de perfil",
|
||||||
"APPS_TWITTER_EDIT_DEFAULT_PROFILE_NAME": "Escolher o nome do perfil",
|
|
||||||
"APPS_TWITTER_EDIT_PROFILE_BIO": "Bio",
|
"APPS_TWITTER_EDIT_PROFILE_BIO": "Bio",
|
||||||
|
"APPS_MARKETPLACE_DELETE_LISTING_FAILED": "Falha em deletar lista",
|
||||||
|
"APPS_MARKETPLACE_DELETE_LISTING_SUCCESS": "Lista deletada com sucesso",
|
||||||
|
"APPS_MARKETPLACE_REPORT_LISTING_FAILED": "Esta lista ja foi reportada",
|
||||||
|
"APPS_MARKETPLACE_REPORT_LISTING_SUCCESS": "Lista reportada com sucesso",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_LOCATION": "Localização",
|
"APPS_TWITTER_EDIT_PROFILE_LOCATION": "Localização",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_JOB": "Emprego",
|
"APPS_TWITTER_EDIT_PROFILE_JOB": "Emprego",
|
||||||
"APPS_TWITTER_CREATE_PROFILE_SUCCESS": "Seu perfil foi criado com sucesso",
|
|
||||||
"APPS_TWITTER_CREATE_PROFILE_FAILURE": "Falha ao criar o seu perfil",
|
|
||||||
"APPS_TWITTER_EDIT_PROFILE_SUCCESS": "Seu perfil foi atualizado com sucesso",
|
"APPS_TWITTER_EDIT_PROFILE_SUCCESS": "Seu perfil foi atualizado com sucesso",
|
||||||
"APPS_TWITTER_EDIT_PROFILE_FAILURE": "Falha ao atualizar o seu perfil",
|
"APPS_TWITTER_EDIT_PROFILE_FAILURE": "Não foi possivel atualizar seu perfil",
|
||||||
"APPS_TWITTER_RETWEET_EXISTS": "Você já retuitou este tweet!",
|
"APPS_TWITTER_TIME_JUST_NOW": "agora",
|
||||||
"APPS_TWITTER_TIME_JUST_NOW": "Agora mesmo",
|
|
||||||
"APPS_TWITTER_TIME_MINUTES": "m",
|
"APPS_TWITTER_TIME_MINUTES": "m",
|
||||||
"APPS_TWITTER_TIME_HOURS": "h",
|
"APPS_TWITTER_TIME_HOURS": "h",
|
||||||
"APPS_TWITTER_TIME_DAYS": "d",
|
"APPS_TWITTER_TIME_DAYS": "d",
|
||||||
|
"APPS_MESSAGES_ME": "Eu",
|
||||||
|
"APPS_MESSAGES_MEMBERS_TITLE": "Membros",
|
||||||
"APPS_TWITTER_NEW_BROADCAST": "Novo tweet de @{{ profile_name }}!",
|
"APPS_TWITTER_NEW_BROADCAST": "Novo tweet de @{{ profile_name }}!",
|
||||||
"APPS_TWITTER_NEW_RETWEET_BROADCAST": "@{{ profile_name }} retuitou alguém!",
|
"APPS_TWITTER_UNREAD_MESSAGES": "Voce tem {{ count }} novos tweets na sua timeline!",
|
||||||
"APPS_TWITTER_UNREAD_MESSAGES": "Você tem {{ count }} novos tweets em sua linha do tempo!",
|
"APPS_MESSAGES_UNREAD_MESSAGES": "Voce tem {{ count }} Mensagens nao lidas",
|
||||||
|
"APPS_SETTINGS_OPTION_NOTIFICATION_FILTER": "Filtro de notificaçao",
|
||||||
"APPS_MATCH": "Matchmaker",
|
"APPS_TWITTER_NEW_RETWEET_BROADCAST": "@{{ profile_name }} Retweetou alguem!",
|
||||||
"APPS_MATCH_LIKED": "CURTIR",
|
"APPS_TWITTER_RETWEET_EXISTS": "Voce ja retweetou isso!",
|
||||||
"APPS_MATCH_NOPE": "NÃO",
|
"APPS_TWITTER_RETWEETED": "Retweetado",
|
||||||
"APPS_MATCH_LIKE": "Curtir",
|
"GENERIC_CALL": "Call",
|
||||||
"APPS_MATCH_DISLIKE": "Não curtir",
|
"GENERIC_MESSAGE": "Mensagem",
|
||||||
"APPS_MATCH_NO_PROFILES": "Nenhum perfil recente encontrado",
|
"GENERIC_REPORT": "Reporte",
|
||||||
"APPS_MATCH_NO_MATCHES": "Nenhum match encontrado",
|
"GENERIC_WAIT": "Por favor aguarde...",
|
||||||
"APPS_MATCH_PROFILES_ERROR": "Erro ao carregar perfis",
|
"GENERIC_WRITE_TO_CLIPBOARD_MESSAGE": "Copiado {{content}} para a área de transferência!!",
|
||||||
"APPS_MATCH_MATCHES_ERROR": "Erro ao carregar matches",
|
"GENERIC_WRITE_TO_CLIPBOARD_TOOLTIP": "Copiar {{ content }}",
|
||||||
"APPS_MATCH_PROFILE_CONFIGURATION": "O aplicativo está configurado incorretamente - não foi possível criar o perfil. Entre em contato com um administrador.",
|
|
||||||
"APPS_MATCH_MY_PROFILE_ERROR": "Erro ao carregar o perfil.",
|
|
||||||
"APPS_MATCH_PROFILE_LAST_ACTIVE": "Última atividade:: {{ lastActive }}",
|
|
||||||
"APPS_MATCH_PROFILE_MATCHED_AT": "Matched: {{ matchedAt }}",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_PREVIEW": "Ver Preview",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_IMAGE": "URL da imagem",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_NAME": "Nome do perfil",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_BIO": "Bio",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_LOCATION": "Localização",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_JOB": "Emprego",
|
|
||||||
"APPS_MATCH_EDIT_PROFILE_TAGS": "Tags",
|
|
||||||
"APPS_MATCH_GET_MY_PROFILE_FAILED": "Falha ao recuperar o perfil do jogador",
|
|
||||||
"APPS_MATCH_GET_PROFILES_FAILED": "Falha ao recuperar perfis",
|
|
||||||
"APPS_MATCH_GET_MATCHES_FAILED": "Falha ao recuperar matches",
|
|
||||||
"APPS_MATCH_UPDATE_PROFILE_SUCCEEDED": "Perfil atualizado com sucesso",
|
|
||||||
"APPS_MATCH_UPDATE_PROFILE_FAILED": "Falha ao atualizar o seu pefil",
|
|
||||||
"APPS_MATCH_CREATE_PROFILE_FAILED": "Falha ao criar o seu perfil",
|
|
||||||
"APPS_MATCH_SAVE_LIKES_FAILED": "Falha ao salvar curtidas",
|
|
||||||
"APPS_MATCH_SAVE_LIKES_SUCCEDED": "Curtidas salvas com sucesso",
|
|
||||||
"APPS_MATCH_NEW_LIKE_FOUND": "Novo match encontrado!",
|
|
||||||
|
|
||||||
"APPS_BANK_TRANSFER": "Transferir",
|
"APPS_BANK_TRANSFER": "Transferir",
|
||||||
"APPS_BANK_HOME_TITLE": "Bem vindo",
|
"APPS_BANK_HOME_TITLE": "Bem vindo",
|
||||||
@@ -137,25 +82,19 @@
|
|||||||
"APPS_BANK_ACCOUNT_SEE_TRANSACTION": "Ver tudo",
|
"APPS_BANK_ACCOUNT_SEE_TRANSACTION": "Ver tudo",
|
||||||
"APPS_BANK_ACTIONS_TRANSFER": "Transferir",
|
"APPS_BANK_ACTIONS_TRANSFER": "Transferir",
|
||||||
"APPS_BANK_ALERT_TRANSFER_SUCCESS": "Transferencia realizada com sucesso!",
|
"APPS_BANK_ALERT_TRANSFER_SUCCESS": "Transferencia realizada com sucesso!",
|
||||||
"APPS_BANK_ALERT_TRANSFER_FAILURE": "Transferencia não foi realizada",
|
"APPS_BANK_ALERT_TRANSFER_FAILURE": "Transferencia nao foi realizada",
|
||||||
|
|
||||||
"APPS_MESSAGES_SEARCH_PLACEHOLDER": "Procurar mensagem...",
|
"APPS_MESSAGES_SEARCH_PLACEHOLDER": "Procurar mensagem...",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE": "Mensagem...",
|
"APPS_MESSAGES_NEW_MESSAGE": "Mensagem...",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE_FAILED:": "Mensagem não pode ser enviada",
|
"APPS_MESSAGES_NEW_MESSAGE_FAILED:": "Mensagem nao pode ser enviada",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE_GROUP": "Números de telefone...",
|
"APPS_MESSAGES_NEW_MESSAGE_GROUP": "Números de telefone...",
|
||||||
"APPS_MESSAGES_GROUP_CHAT_LABEL": "Nome do chat em grupo...",
|
"APPS_MESSAGES_GROUP_CHAT_LABEL": "Nome do chat em grupo...",
|
||||||
"APPS_MESSAGES_NEW_MESSAGE_GROUP_SUBMIT": "Enviar",
|
"APPS_MESSAGES_NEW_MESSAGE_GROUP_SUBMIT": "Enviar",
|
||||||
"APPS_MESSAGES_INVALID_PHONE_NUMBER": "Numero de telefone inválido: ",
|
"APPS_MESSAGES_INVALID_PHONE_NUMBER": "Numero de telefone invalido: ",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_DUPLICATE": "Esse grupo já existe",
|
"APPS_MESSAGES_MESSAGE_GROUP_DUPLICATE": "Esse grupo ja existe",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_FAILED": "Falha ao criar grupo de mensagens",
|
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_FAILED": "Falha ao criar grupo de mensagens",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_MINE": "Voce não pode adcionar você mesmo!",
|
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_MINE": "Voce nao pode adcionar voce mesmo!",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_ALL_NUMBERS_FAILED": "Nenhum dos números de telefone foi encontrado!",
|
"APPS_MESSAGES_INPUT_NAME_OR_NUMBER": "Procure por contatos ou numero e aperte enter",
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_ONE_NUMBER_FAILED": "{{ number }} não é um número registrado",
|
|
||||||
"APPS_MESSAGES_MESSAGE_GROUP_CREATE_SOME_NUMBERS_FAILED": "({{ numbers }}) não são números registrados.",
|
|
||||||
"APPS_MESSAGES_INPUT_NAME_OR_NUMBER": "Pesquise contatos ou digite o número e pressione Enter",
|
|
||||||
"APPS_MESSAGES_UNREAD_MESSAGES": "Você tem {{ count }} mensagens não lidas",
|
|
||||||
"APPS_MESSAGES_MEMBERS_TITLE": "Membros",
|
|
||||||
"APPS_MESSAGES_ME": "Eu",
|
|
||||||
|
|
||||||
"APPS_CONTACT_FORM_NAME": "Nome",
|
"APPS_CONTACT_FORM_NAME": "Nome",
|
||||||
"APPS_CONTACT_FORM_NUMBER": "Número",
|
"APPS_CONTACT_FORM_NUMBER": "Número",
|
||||||
@@ -182,46 +121,25 @@
|
|||||||
|
|
||||||
"APPS_CALCULATOR_COPIED": "Resultado foi copiado para a área de transferência!",
|
"APPS_CALCULATOR_COPIED": "Resultado foi copiado para a área de transferência!",
|
||||||
|
|
||||||
|
"APPS_MARKETPLACE_CREATE_LISTING_SUCCESS": "Lista sendo criada com sucesso",
|
||||||
|
"APPS_MARKETPALCE_CREATE_LISTING_FAILED": "Falha em criar nova lista",
|
||||||
|
|
||||||
"APPS_SETTINGS_PHONE_NUMBER": "Número de telefone",
|
"APPS_SETTINGS_PHONE_NUMBER": "Número de telefone",
|
||||||
"APPS_SETTINGS_OPTION_WALLPAPER": "Papel de parede",
|
"APPS_SETTINGS_OPTION_WALLPAPER": "Papel de parede",
|
||||||
"APPS_SETTINGS_OPTIONS_CUSTOM_WALLPAPER": "Papel de parede customizado",
|
|
||||||
"APPS_SETTINGS_OPTION_FRAME": "Frame",
|
"APPS_SETTINGS_OPTION_FRAME": "Frame",
|
||||||
"APPS_SETTINGS_OPTION_THEME": "Tema",
|
"APPS_SETTINGS_OPTION_THEME": "Tema",
|
||||||
"APPS_SETTINGS_OPTION_ZOOM": "Zoom",
|
"APPS_SETTINGS_OPTION_ZOOM": "Zoom",
|
||||||
"APPS_SETTINGS_OPTION_STREAMER_MODE": "Modo Streamer",
|
|
||||||
"APPS_SETTINGS_OPTION_RINGTONE": "Toque",
|
"APPS_SETTINGS_OPTION_RINGTONE": "Toque",
|
||||||
"APPS_SETTINGS_OPTION_RINGTONEVOL": "Volume do toque",
|
"APPS_SETTINGS_OPTION_RINGTONEVOL": "Volume do toque",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATION_FILTER": "Filtros de Notificação",
|
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notificaçao",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATION": "Notificação",
|
"APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Volume da notificaçao",
|
||||||
"APPS_SETTINGS_OPTION_NOTIFICATIONVOL": "Volume das notificações",
|
|
||||||
"APPS_SETTING_STREAMER_MODE_DESC": "Ocultar as imagens antes de serem mostradas",
|
|
||||||
"APPS_SETTINGS_SET_CUSTOM_WALLPAPER": "Definir novo papel de parede",
|
|
||||||
|
|
||||||
"APPS_MARKETPLACE_CREATE_LISTING_SUCCESS": "Lista sendo criada com sucesso",
|
|
||||||
"APPS_MARKETPLACE_CREATE_LISTING_FAILED": "Falha em criar nova lista",
|
|
||||||
"APPS_MARKETPLACE_DELETE_LISTING_SUCCESS": "Lista excluída com sucesso",
|
|
||||||
"APPS_MARKETPLACE_DELETE_LISTING_FAILED": "Falha ao excluir lista",
|
|
||||||
"APPS_MARKETPLACE_REPORT_LISTING_FAILED": "Esta lista já foi reportada",
|
|
||||||
"APPS_MARKETPLACE_REPORT_LISTING_SUCCESS": "Lista reportada com sucesso",
|
|
||||||
"APPS_MARKETPLACE_REQUIRED_FIELDS": "Todos os campos devem ser preenchidos!",
|
|
||||||
"APPS_MARKETPLACE_FORM_TITLE": "Título",
|
|
||||||
"APPS_MARKETPLACE_FORM_IMAGE": "Imagem ou URL",
|
|
||||||
"APPS_MARKETPLACE_FORM_DESCRIPTION": "Descrição",
|
|
||||||
|
|
||||||
"GENERIC_CLICK_TO_REVEAL": "Clique para revelar",
|
|
||||||
"GENERIC_WAIT": "Por favor, espere...",
|
|
||||||
"GENERIC_SAVE": "Salvar",
|
"GENERIC_SAVE": "Salvar",
|
||||||
"GENERIC_UPDATE": "Atualizar",
|
"GENERIC_UPDATE": "Atualizar",
|
||||||
"GENERIC_REQUIRED": "Requerido",
|
"GENERIC_DELETE": "Deletar",
|
||||||
"GENERIC_DELETE": "Apagar",
|
|
||||||
"GENERIC_REPORT": "Reportar",
|
|
||||||
"GENERIC_CALL": "Chamar",
|
|
||||||
"GENERIC_MESSAGE": "Mensagem",
|
|
||||||
"GENERIC_CLOSE": "Fechar",
|
"GENERIC_CLOSE": "Fechar",
|
||||||
"GENERIC_CANCEL": "Cancelar",
|
"GENERIC_CANCEL": "Cancelar",
|
||||||
"GENERIC_TITLE": "Título",
|
"GENERIC_TITLE": "Titulo",
|
||||||
"GENERIC_CONTENT": "Conteúdo",
|
"GENERIC_CONTENT": "Conteudo"
|
||||||
"GENERIC_WRITE_TO_CLIPBOARD_TOOLTIP": "Copiar {{ content }}",
|
|
||||||
"GENERIC_WRITE_TO_CLIPBOARD_MESSAGE": "{{content}} copiado(a) para a área de transferência!"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,7 @@ import { MessagesApp } from '../../../apps/messages/components/MessagesApp';
|
|||||||
import { MatchApp } from '../../../apps/match/components/MatchApp';
|
import { MatchApp } from '../../../apps/match/components/MatchApp';
|
||||||
import { TwitterApp } from '../../../apps/twitter/components/TwitterApp';
|
import { TwitterApp } from '../../../apps/twitter/components/TwitterApp';
|
||||||
import { ExampleApp } from '../../../apps/example/components/ExampleApp';
|
import { ExampleApp } from '../../../apps/example/components/ExampleApp';
|
||||||
import { MarketplaceApp } from '../../../apps/marketplace/components/MarketplaceApp';
|
import { SelloutApp } from '../../../apps/sellout/components/SelloutApp';
|
||||||
import { NotesApp } from '../../../apps/notes/NotesApp';
|
import { NotesApp } from '../../../apps/notes/NotesApp';
|
||||||
import CameraApp from '../../../apps/camera/components/CameraApp';
|
import CameraApp from '../../../apps/camera/components/CameraApp';
|
||||||
import { AppRoute } from '../components/AppRoute';
|
import { AppRoute } from '../components/AppRoute';
|
||||||
@@ -41,7 +41,7 @@ import {
|
|||||||
import {
|
import {
|
||||||
SELLOUT_APP_PRIMARY_COLOR,
|
SELLOUT_APP_PRIMARY_COLOR,
|
||||||
SELLOUT_APP_ICON_COLOR,
|
SELLOUT_APP_ICON_COLOR,
|
||||||
} from '../../../apps/marketplace/marketplace.theme';
|
} from '../../../apps/sellout/sellout.theme';
|
||||||
import { NOTES_APP_ICON_COLOR, NOTES_APP_PRIMARY_COLOR } from '../../../apps/notes/notes.theme';
|
import { NOTES_APP_ICON_COLOR, NOTES_APP_PRIMARY_COLOR } from '../../../apps/notes/notes.theme';
|
||||||
import { DIALER_APP_PRIMARY_COLOR, DIALER_APP_TEXT_COLOR } from '../../../apps/dialer/dialer.theme';
|
import { DIALER_APP_PRIMARY_COLOR, DIALER_APP_TEXT_COLOR } from '../../../apps/dialer/dialer.theme';
|
||||||
import {
|
import {
|
||||||
@@ -112,8 +112,7 @@ export const APPS: IAppConfig[] = [
|
|||||||
path: '/settings',
|
path: '/settings',
|
||||||
Route: () => <AppRoute id="SETTINGS" path="/settings" component={SettingsApp} />,
|
Route: () => <AppRoute id="SETTINGS" path="/settings" component={SettingsApp} />,
|
||||||
},
|
},
|
||||||
/* Hiding the bank app while the bank resource gets done */
|
{
|
||||||
/*{
|
|
||||||
id: 'BANK',
|
id: 'BANK',
|
||||||
nameLocale: 'APPS_BANK',
|
nameLocale: 'APPS_BANK',
|
||||||
icon: <FontAwesomeIcon icon={faWonSign} />,
|
icon: <FontAwesomeIcon icon={faWonSign} />,
|
||||||
@@ -122,7 +121,7 @@ export const APPS: IAppConfig[] = [
|
|||||||
color: common.white,
|
color: common.white,
|
||||||
path: '/bank',
|
path: '/bank',
|
||||||
Route: () => <AppRoute id="BANK" path="/bank" component={BankApp} />,
|
Route: () => <AppRoute id="BANK" path="/bank" component={BankApp} />,
|
||||||
},*/
|
},
|
||||||
{
|
{
|
||||||
id: 'MATCH',
|
id: 'MATCH',
|
||||||
nameLocale: 'APPS_MATCH',
|
nameLocale: 'APPS_MATCH',
|
||||||
@@ -150,8 +149,8 @@ export const APPS: IAppConfig[] = [
|
|||||||
notificationIcon: <FontAwesomeIcon icon={faAd} fixedWidth size="xs" />,
|
notificationIcon: <FontAwesomeIcon icon={faAd} fixedWidth size="xs" />,
|
||||||
backgroundColor: SELLOUT_APP_PRIMARY_COLOR,
|
backgroundColor: SELLOUT_APP_PRIMARY_COLOR,
|
||||||
color: SELLOUT_APP_ICON_COLOR,
|
color: SELLOUT_APP_ICON_COLOR,
|
||||||
path: '/marketplace',
|
path: '/sellout',
|
||||||
Route: () => <AppRoute id="MARKETPLACE" path="/marketplace" component={MarketplaceApp} />,
|
Route: () => <AppRoute id="SELLOUT" path="/sellout" component={SelloutApp} />,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'NOTES',
|
id: 'NOTES',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export interface IAlert {
|
|||||||
type: AlertType;
|
type: AlertType;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AlertType = 'success' | 'error' | 'info' | 'warning';
|
export type AlertType = 'success' | 'error' | 'info';
|
||||||
|
|
||||||
interface ISnackBar {
|
interface ISnackBar {
|
||||||
addAlert: ({ message, type }: IAlert) => void;
|
addAlert: ({ message, type }: IAlert) => void;
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ const handleCameraExit = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
onNet(PhotoEvents.SEND_PHOTOS, (photos: string[]) => {
|
onNet(PhotoEvents.SEND_PHOTOS, (photos: string[]) => {
|
||||||
sendCameraEvent(PhotoEvents.SEND_PHOTOS, photos);
|
sendCameraEvent('setPhotos', photos);
|
||||||
});
|
});
|
||||||
|
|
||||||
function takePhoto() {
|
function takePhoto() {
|
||||||
|
|||||||
File renamed without changes.
@@ -3,7 +3,7 @@ import ClientUtils from './cl_utils';
|
|||||||
import './cl_main';
|
import './cl_main';
|
||||||
import './cl_twitter';
|
import './cl_twitter';
|
||||||
import './cl_contacts';
|
import './cl_contacts';
|
||||||
import './cl_marketplace';
|
import './cl_sellout';
|
||||||
import './cl_bank';
|
import './cl_bank';
|
||||||
import './cl_notes';
|
import './cl_notes';
|
||||||
import './cl_photo';
|
import './cl_photo';
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ export async function getIdentifierByPhoneNumber(
|
|||||||
* Returns the player phoneNumber for a passed identifier
|
* Returns the player phoneNumber for a passed identifier
|
||||||
* @param identifier The players phone number
|
* @param identifier The players phone number
|
||||||
*/
|
*/
|
||||||
export function getPlayerFromIdentifier(identifier: string): Player | null {
|
export function getPlayerFromIdentifier(identifier: string) {
|
||||||
const player = PlayersByIdentifier.get(identifier);
|
const player = PlayersByIdentifier.get(identifier);
|
||||||
if (!player) return null;
|
if (!player) mainLogger.error(`Could not find player from identifier: ${identifier}`);
|
||||||
return player;
|
return player;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ function getRandomPhoneNumber() {
|
|||||||
return randomNumber;
|
return randomNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function generatePhoneNumber(identifier: string): Promise<string> {
|
export async function generatePhoneNumber(identifier: string): Promise<void> {
|
||||||
const getQuery = `SELECT phone_number FROM users WHERE identifier = ?`;
|
const getQuery = `SELECT phone_number FROM users WHERE identifier = ?`;
|
||||||
const [results] = await pool.query(getQuery, [identifier]);
|
const [results] = await pool.query(getQuery, [identifier]);
|
||||||
const result = <any[]>results;
|
const result = <any[]>results;
|
||||||
@@ -90,7 +90,5 @@ export async function generatePhoneNumber(identifier: string): Promise<string> {
|
|||||||
mainLogger.debug(`Inserting number into Database: ${newNumber}`);
|
mainLogger.debug(`Inserting number into Database: ${newNumber}`);
|
||||||
const query = 'UPDATE users SET phone_number = ? WHERE identifier = ?';
|
const query = 'UPDATE users SET phone_number = ? WHERE identifier = ?';
|
||||||
await pool.query(query, [newNumber, identifier]);
|
await pool.query(query, [newNumber, identifier]);
|
||||||
return newNumber;
|
|
||||||
}
|
}
|
||||||
return phoneNumber;
|
|
||||||
}
|
}
|
||||||
@@ -32,21 +32,10 @@ export async function handlePlayerAdd(pSource: number) {
|
|||||||
const username = GetPlayerName(pSource.toString());
|
const username = GetPlayerName(pSource.toString());
|
||||||
playerLogger.info(`Started loading for ${username} (${pSource})`);
|
playerLogger.info(`Started loading for ${username} (${pSource})`);
|
||||||
// Ensure phone number exists or generate
|
// Ensure phone number exists or generate
|
||||||
const phone_number = await generatePhoneNumber(playerIdentifer);
|
await generatePhoneNumber(playerIdentifer);
|
||||||
|
|
||||||
// Get player info to populate class instance
|
// Get player info to populate class instance
|
||||||
let playerInfo = { firstname: '', lastname: '' };
|
const { firstname, lastname, phone_number } = await getPlayerInfo(playerIdentifer);
|
||||||
try {
|
|
||||||
playerInfo = await getPlayerInfo(playerIdentifer);
|
|
||||||
} catch (e) {
|
|
||||||
playerLogger.debug(
|
|
||||||
`Failed to get player info, defaulting to phone number as profile, ${e.message}`,
|
|
||||||
{
|
|
||||||
source: pSource,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
const { firstname, lastname } = playerInfo;
|
|
||||||
|
|
||||||
const newPlayer = new Player({
|
const newPlayer = new Player({
|
||||||
identifier: playerIdentifer,
|
identifier: playerIdentifer,
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import './db';
|
|||||||
import './sv_twitter';
|
import './sv_twitter';
|
||||||
import './sv_main';
|
import './sv_main';
|
||||||
import './sv_contacts';
|
import './sv_contacts';
|
||||||
import './sv_marketplace';
|
import './sv_sellout';
|
||||||
import './sv_bank';
|
import './sv_bank';
|
||||||
import './sv_notes';
|
import './sv_notes';
|
||||||
import './sv_photo';
|
import './sv_photo';
|
||||||
|
|||||||
@@ -356,29 +356,19 @@ async function createMessageGroupsFromPhoneNumbers(
|
|||||||
): Promise<CreateMessageGroupResult> {
|
): Promise<CreateMessageGroupResult> {
|
||||||
// we check that each phoneNumber exists before we create the group
|
// we check that each phoneNumber exists before we create the group
|
||||||
const identifiers: string[] = [];
|
const identifiers: string[] = [];
|
||||||
const failedNumbers: string[] = [];
|
|
||||||
|
|
||||||
for (const phoneNumber of phoneNumbers) {
|
for (const phoneNumber of phoneNumbers) {
|
||||||
try {
|
const identifier = await getIdentifierFromPhoneNumber(phoneNumber);
|
||||||
const identifier = await getIdentifierFromPhoneNumber(phoneNumber);
|
identifiers.push(identifier);
|
||||||
identifiers.push(identifier);
|
|
||||||
} catch (e) {
|
|
||||||
failedNumbers.push(phoneNumber);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (phoneNumbers.length === failedNumbers.length) {
|
|
||||||
return { error: true, allNumbersFailed: true, failedNumbers };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// don't allow explicitly adding yourself
|
// don't allow explicitly adding yourself
|
||||||
if (identifiers.some((identifier) => identifier === userIdentifier)) {
|
if (identifiers.some((identifier) => identifier === userIdentifier)) {
|
||||||
return { error: true, mine: true, failedNumbers };
|
return { error: true, mine: true };
|
||||||
}
|
}
|
||||||
|
|
||||||
const groupId = createGroupHashID([userIdentifier, ...identifiers]);
|
const groupId = createGroupHashID([userIdentifier, ...identifiers]);
|
||||||
if (await checkIfMessageGroupExists(groupId)) {
|
if (await checkIfMessageGroupExists(groupId)) {
|
||||||
return { error: false, duplicate: true, groupId, identifiers, failedNumbers };
|
return { error: false, duplicate: true, groupId, identifiers };
|
||||||
}
|
}
|
||||||
|
|
||||||
const queryPromises = [
|
const queryPromises = [
|
||||||
@@ -398,7 +388,7 @@ async function createMessageGroupsFromPhoneNumbers(
|
|||||||
// group exist while other are left off.
|
// group exist while other are left off.
|
||||||
await withTransaction(queryPromises);
|
await withTransaction(queryPromises);
|
||||||
|
|
||||||
return { error: false, groupId, identifiers, failedNumbers };
|
return { error: false, groupId, identifiers };
|
||||||
}
|
}
|
||||||
|
|
||||||
// getting the participants from groupId.
|
// getting the participants from groupId.
|
||||||
@@ -436,10 +426,9 @@ onNet(MessageEvents.CREATE_MESSAGE_GROUP, async (phoneNumbers: string[], label:
|
|||||||
const _identifier = getIdentifier(_source);
|
const _identifier = getIdentifier(_source);
|
||||||
const result = await createMessageGroupsFromPhoneNumbers(_identifier, phoneNumbers, label);
|
const result = await createMessageGroupsFromPhoneNumbers(_identifier, phoneNumbers, label);
|
||||||
|
|
||||||
if (result.error && result.allNumbersFailed) {
|
if (result.error && result.duplicate) {
|
||||||
emitNet(MessageEvents.CREATE_MESSAGE_GROUP_FAILED, _source, result);
|
|
||||||
return emitNet(MessageEvents.ACTION_RESULT, _source, {
|
return emitNet(MessageEvents.ACTION_RESULT, _source, {
|
||||||
message: `APPS_MESSAGES_MESSAGE_GROUP_CREATE_ALL_NUMBERS_FAILED`,
|
message: 'MESSAGES_MESSAGE_GROUP_DUPLICATE',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -447,27 +436,11 @@ onNet(MessageEvents.CREATE_MESSAGE_GROUP, async (phoneNumbers: string[], label:
|
|||||||
if (result.error) {
|
if (result.error) {
|
||||||
emitNet(MessageEvents.CREATE_MESSAGE_GROUP_FAILED, _source, result);
|
emitNet(MessageEvents.CREATE_MESSAGE_GROUP_FAILED, _source, result);
|
||||||
return emitNet(MessageEvents.ACTION_RESULT, _source, {
|
return emitNet(MessageEvents.ACTION_RESULT, _source, {
|
||||||
message: `APPS_MESSAGES_MESSAGE_GROUP_CREATE_FAILED`,
|
message: `MESSAGES_MESSAGE_GROUP_CREATE_FAILED:`,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.failedNumbers.length === 1) {
|
|
||||||
emitNet(MessageEvents.ACTION_RESULT, _source, {
|
|
||||||
message: `APPS_MESSAGES_MESSAGE_GROUP_CREATE_ONE_NUMBER_FAILED`,
|
|
||||||
type: 'warning',
|
|
||||||
options: { number: result.failedNumbers[0] },
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
if (result.failedNumbers.length > 1) {
|
|
||||||
emitNet(MessageEvents.ACTION_RESULT, _source, {
|
|
||||||
message: `APPS_MESSAGES_MESSAGE_GROUP_CREATE_SOME_NUMBERS_FAILED`,
|
|
||||||
type: 'warning',
|
|
||||||
options: { numbers: result.failedNumbers.join(', ') },
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
emitNet(MessageEvents.CREATE_MESSAGE_GROUP_SUCCESS, _source, result);
|
emitNet(MessageEvents.CREATE_MESSAGE_GROUP_SUCCESS, _source, result);
|
||||||
if (result.duplicate) {
|
if (result.duplicate) {
|
||||||
return;
|
return;
|
||||||
@@ -488,7 +461,7 @@ onNet(MessageEvents.CREATE_MESSAGE_GROUP, async (phoneNumbers: string[], label:
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
emitNet(MessageEvents.CREATE_MESSAGE_GROUP_FAILED, _source);
|
emitNet(MessageEvents.CREATE_MESSAGE_GROUP_FAILED, _source);
|
||||||
emitNet(MessageEvents.ACTION_RESULT, _source, {
|
emitNet(MessageEvents.ACTION_RESULT, _source, {
|
||||||
message: `APPS_MESSAGES_MESSAGE_GROUP_CREATE_FAILED`,
|
message: `MESSAGES_MESSAGE_GROUP_CREATE_FAILED:`,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
});
|
});
|
||||||
messageLogger.error(`Failed to create message group, ${e.message}`, {
|
messageLogger.error(`Failed to create message group, ${e.message}`, {
|
||||||
@@ -540,8 +513,14 @@ onNet(MessageEvents.SEND_MESSAGE, async (groupId: string, message: string, group
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
// Not really sure what this does? As I cant find any reference
|
||||||
|
// of this in the ui part.
|
||||||
|
emitNet(MessageEvents.SEND_MESSAGE_FAILED, _source);
|
||||||
|
// sending a new alert
|
||||||
|
// The message property is always using the locale strings without
|
||||||
|
// the APPS_ prefix.
|
||||||
emitNet(MessageEvents.ACTION_RESULT, _source, {
|
emitNet(MessageEvents.ACTION_RESULT, _source, {
|
||||||
message: 'APPS_MESSAGES_NEW_MESSAGE_FAILED',
|
message: 'MESSAGES_NEW_MESSAGE_FAILED',
|
||||||
type: 'error',
|
type: 'error',
|
||||||
});
|
});
|
||||||
messageLogger.error(`Failed to send message, ${e.message}`, {
|
messageLogger.error(`Failed to send message, ${e.message}`, {
|
||||||
|
|||||||
File renamed without changes.
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
export interface IAlertProps {
|
export interface IAlertProps {
|
||||||
message: string;
|
message: string;
|
||||||
type: 'success' | 'error' | 'info' | 'warning';
|
type: 'success' | 'error';
|
||||||
}
|
}
|
||||||
@@ -30,8 +30,6 @@ export interface CreateMessageGroupResult {
|
|||||||
groupId?: string;
|
groupId?: string;
|
||||||
mine?: boolean;
|
mine?: boolean;
|
||||||
identifiers?: string[];
|
identifiers?: string[];
|
||||||
allNumbersFailed?: boolean;
|
|
||||||
failedNumbers: string[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CreateMessageBroadcast {
|
export interface CreateMessageBroadcast {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
export const PHONE_NUMBER_REGEX = /^([0-9]{3}-[0-9]{4})|([0-9]{7})$/;
|
|
||||||
|
|
||||||
export enum PhoneEvents {
|
export enum PhoneEvents {
|
||||||
PLAYER_IS_READY = 'npwd:playerIsReady',
|
PLAYER_IS_READY = 'npwd:playerIsReady',
|
||||||
OPEN_APP_CONTACTS = 'npwd:app:CONTACTS',
|
OPEN_APP_CONTACTS = 'npwd:app:CONTACTS',
|
||||||
|
|||||||
Reference in new issue
Block a user