mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-01 14:38:47 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3076a45fb | ||
|
|
62aaaea368 | ||
|
|
9896f2384e |
No files matched your search
+44
-46
@@ -1,15 +1,13 @@
|
||||
# comment this out if your server has a different table/location for phone_number
|
||||
# or if it already exists in the users table
|
||||
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 (
|
||||
id int(11) NOT NULL AUTO_INCREMENT,
|
||||
identifier varchar(60) DEFAULT NULL,
|
||||
avatar varchar(512) DEFAULT NULL,
|
||||
number varchar(10) DEFAULT NULL,
|
||||
display varchar(60) NOT NULL DEFAULT '',
|
||||
CREATE TABLE IF NOT EXISTS `npwd_phone_contacts` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`identifier` varchar(48) DEFAULT NULL,
|
||||
`avatar` varchar(512) DEFAULT NULL,
|
||||
`number` varchar(10) DEFAULT NULL,
|
||||
`display` varchar(60) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
@@ -19,7 +17,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_tweets` (
|
||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`likes` int NOT NULL DEFAULT '0',
|
||||
`identifier` varchar(40) NOT NULL,
|
||||
`identifier` varchar(48) NOT NULL,
|
||||
`visible` tinyint NOT NULL DEFAULT '1',
|
||||
`images` varchar(1000) DEFAULT '',
|
||||
`retweet` int DEFAULT NULL,
|
||||
@@ -30,7 +28,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_tweets` (
|
||||
CREATE TABLE IF NOT EXISTS `npwd_twitter_profiles` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`profile_name` varchar(90) NOT NULL,
|
||||
`identifier` varchar(40) NOT NULL,
|
||||
`identifier` varchar(48) NOT NULL,
|
||||
# Default Profile avatar can be set here
|
||||
`avatar_url` varchar(255) DEFAULT 'https://beta.iodine.gg/QrEvq.png',
|
||||
`bio` varchar(512) DEFAULT NULL,
|
||||
@@ -56,7 +54,7 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_likes` (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `npwd_match_profiles` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`identifier` varchar(255) NOT NULL,
|
||||
`identifier` varchar(48) NOT NULL,
|
||||
`name` varchar(90) NOT NULL,
|
||||
`image` varchar(255) NOT NULL,
|
||||
`bio` varchar(512) DEFAULT NULL,
|
||||
@@ -72,7 +70,7 @@ CREATE TABLE IF NOT EXISTS `npwd_match_profiles` (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `npwd_match_views` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`identifier` varchar(40) NOT NULL,
|
||||
`identifier` varchar(48) NOT NULL,
|
||||
`profile` int NOT NULL,
|
||||
`liked` tinyint DEFAULT '0',
|
||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
@@ -82,32 +80,32 @@ CREATE TABLE IF NOT EXISTS `npwd_match_views` (
|
||||
CONSTRAINT `match_profile` FOREIGN KEY (`profile`) REFERENCES `npwd_match_profiles` (`id`)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS npwd_notes (
|
||||
id int(11) NOT NULL AUTO_INCREMENT,
|
||||
identifier varchar(255) NOT NULL,
|
||||
title varchar(255) NOT NULL,
|
||||
content varchar(255) NOT NULL,
|
||||
CREATE TABLE IF NOT EXISTS `npwd_notes` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`identifier` varchar(48) NOT NULL,
|
||||
`title` varchar(255) NOT NULL,
|
||||
`content` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS npwd_marketplace_listings (
|
||||
id int(11) NOT NULL AUTO_INCREMENT,
|
||||
identifier varchar(255) DEFAULT NULL,
|
||||
username varchar(255) DEFAULT NULL,
|
||||
name varchar(50) DEFAULT NULL,
|
||||
number varchar(255) NOT NULL,
|
||||
title varchar(255) DEFAULT NULL,
|
||||
url varchar(255) DEFAULT NULL,
|
||||
description varchar(255) NOT NULL,
|
||||
createdAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updatedAt timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
CREATE TABLE IF NOT EXISTS `npwd_marketplace_listings` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`identifier` varchar(48) DEFAULT NULL,
|
||||
`username` varchar(255) DEFAULT NULL,
|
||||
`name` varchar(50) DEFAULT NULL,
|
||||
`number` varchar(255) NOT NULL,
|
||||
`title` varchar(255) DEFAULT NULL,
|
||||
`url` varchar(255) DEFAULT NULL,
|
||||
`description` varchar(255) NOT NULL,
|
||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS npwd_marketplace_reports (
|
||||
id int(11) NOT NULL AUTO_INCREMENT,
|
||||
listing_id int(11) DEFAULT NULL,
|
||||
profile varchar(255) DEFAULT NULL,
|
||||
CREATE TABLE IF NOT EXISTS `npwd_marketplace_reports` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`listing_id` int(11) DEFAULT NULL,
|
||||
`profile` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
@@ -125,11 +123,11 @@ CREATE TABLE IF NOT EXISTS `npwd_twitter_reports` (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `npwd_messages_groups` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`user_identifier` varchar(40) NOT NULL,
|
||||
`user_identifier` varchar(48) NOT NULL,
|
||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`group_id` varchar(512) NOT NULL,
|
||||
`participant_identifier` varchar(40) NOT NULL,
|
||||
`participant_identifier` varchar(48) NOT NULL,
|
||||
`label` varchar(60) DEFAULT '',
|
||||
`unreadCount` int(11) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`)
|
||||
@@ -137,7 +135,7 @@ CREATE TABLE IF NOT EXISTS `npwd_messages_groups` (
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `npwd_messages_labels` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`user_identifier` varchar(40) NOT NULL,
|
||||
`user_identifier` varchar(48) NOT NULL,
|
||||
`label` varchar(60) NOT NULL,
|
||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
@@ -148,7 +146,7 @@ CREATE TABLE IF NOT EXISTS `npwd_messages_labels` (
|
||||
CREATE TABLE IF NOT EXISTS `npwd_messages` (
|
||||
`id` int NOT NULL AUTO_INCREMENT,
|
||||
`message` varchar(512) NOT NULL,
|
||||
`user_identifier` varchar(40) NOT NULL,
|
||||
`user_identifier` varchar(48) NOT NULL,
|
||||
`group_id` varchar(512) NOT NULL,
|
||||
`isRead` tinyint NOT NULL DEFAULT '0',
|
||||
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
@@ -157,20 +155,20 @@ CREATE TABLE IF NOT EXISTS `npwd_messages` (
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS npwd_calls (
|
||||
id int(11) NOT NULL AUTO_INCREMENT,
|
||||
identifier varchar(255) DEFAULT NULL,
|
||||
transmitter varchar(255) NOT NULL,
|
||||
receiver varchar(255) NOT NULL,
|
||||
is_accepted tinyint(4) DEFAULT 0,
|
||||
start varchar(255) DEFAULT NULL,
|
||||
CREATE TABLE IF NOT EXISTS `npwd_calls` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`identifier` varchar(48) DEFAULT NULL,
|
||||
`transmitter` varchar(255) NOT NULL,
|
||||
`receiver` varchar(255) NOT NULL,
|
||||
`is_accepted` tinyint(4) DEFAULT 0,
|
||||
`start` varchar(255) DEFAULT NULL,
|
||||
end varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS npwd_phone_gallery (
|
||||
id int(11) NOT NULL AUTO_INCREMENT,
|
||||
identifier varchar(255) DEFAULT NULL,
|
||||
image varchar(255) DEFAULT NULL,
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`identifier` varchar(48) DEFAULT NULL,
|
||||
`image` varchar(255) DEFAULT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
@@ -191,6 +191,10 @@
|
||||
{
|
||||
"label": "Default Light",
|
||||
"value": "default-light"
|
||||
},
|
||||
{
|
||||
"label": "Kiddo Dark",
|
||||
"value": "kiddo-dark"
|
||||
}
|
||||
],
|
||||
"debug": {
|
||||
|
||||
@@ -34,5 +34,20 @@
|
||||
}
|
||||
},
|
||||
"divider": "rgba(255, 255, 255, 0.12)"
|
||||
},
|
||||
"kiddo-dark": {
|
||||
"palette": {
|
||||
"type": "dark",
|
||||
"primary": {
|
||||
"main": "#EBFEF3"
|
||||
},
|
||||
"secondary": {
|
||||
"main": "#5E0035"
|
||||
},
|
||||
"background": {
|
||||
"default": "#033A18",
|
||||
"paper": "#011308"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,46 +1,9 @@
|
||||
import React, { createContext, useRef, useState } from 'react';
|
||||
import React from 'react';
|
||||
import { AppWrapperTypes } from '../interface/InterfaceUI';
|
||||
import { Computer } from '@material-ui/icons';
|
||||
import PhoneDrawer from './PhoneDrawer';
|
||||
|
||||
const items = [
|
||||
{
|
||||
onClick: () => console.log(),
|
||||
icon: <Computer color="inherit" />,
|
||||
text: 'Item Thing',
|
||||
},
|
||||
{
|
||||
onClick: () => console.log(),
|
||||
icon: <Computer color="inherit" />,
|
||||
text: 'Item Thing',
|
||||
},
|
||||
{
|
||||
onClick: () => console.log(),
|
||||
icon: <Computer color="inherit" />,
|
||||
text: 'Item Thing',
|
||||
},
|
||||
{
|
||||
onClick: () => console.log(),
|
||||
icon: <Computer color="inherit" />,
|
||||
text: 'Item Thing',
|
||||
},
|
||||
];
|
||||
|
||||
export const AppWrapper = ({
|
||||
children,
|
||||
style,
|
||||
handleClickAway,
|
||||
sideMenu,
|
||||
appName,
|
||||
...props
|
||||
}: AppWrapperTypes) => {
|
||||
const ref = useRef();
|
||||
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
export const AppWrapper = ({ children, style, handleClickAway, ...props }: AppWrapperTypes) => {
|
||||
return (
|
||||
<div
|
||||
ref={ref}
|
||||
{...props}
|
||||
style={{
|
||||
padding: 0,
|
||||
@@ -54,13 +17,6 @@ export const AppWrapper = ({
|
||||
...style,
|
||||
}}
|
||||
>
|
||||
<PhoneDrawer
|
||||
open={open}
|
||||
handleClose={() => setOpen(false)}
|
||||
appTitle={'Side Menu Thing'}
|
||||
containerEl={ref.current}
|
||||
items={items}
|
||||
/>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
ListItem,
|
||||
List,
|
||||
ListItemText,
|
||||
ListItemIcon,
|
||||
Drawer,
|
||||
Typography,
|
||||
Box,
|
||||
Divider,
|
||||
Button,
|
||||
useTheme,
|
||||
} from '@material-ui/core';
|
||||
import { ChevronLeft, Settings } from '@material-ui/icons';
|
||||
import { makeStyles, Theme } from '@material-ui/core/styles';
|
||||
|
||||
interface DrawerItem {
|
||||
onClick: () => void;
|
||||
text: string;
|
||||
icon?: JSX.Element;
|
||||
}
|
||||
|
||||
const BackAction = ({ handleClose }) => (
|
||||
<Button
|
||||
component={Box}
|
||||
display="flex"
|
||||
flexDirection="row"
|
||||
alignItems="center"
|
||||
left="16px"
|
||||
position="absolute"
|
||||
bottom="16px"
|
||||
onClick={handleClose}
|
||||
>
|
||||
<ChevronLeft color="secondary" />
|
||||
<Typography variant="body1" color="textSecondary">
|
||||
Close
|
||||
</Typography>
|
||||
</Button>
|
||||
);
|
||||
|
||||
interface PhoneDrawer {
|
||||
open: boolean;
|
||||
handleClose: () => void;
|
||||
containerEl: Element;
|
||||
items: DrawerItem[];
|
||||
appTitle?: string;
|
||||
}
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => ({
|
||||
sidebarTitle: {
|
||||
marginLeft: 20,
|
||||
color: theme.palette.secondary.contrastText,
|
||||
},
|
||||
}));
|
||||
|
||||
const PhoneDrawer: React.FC<PhoneDrawer> = ({
|
||||
items,
|
||||
open,
|
||||
containerEl,
|
||||
handleClose,
|
||||
appTitle,
|
||||
}) => {
|
||||
const theme = useTheme();
|
||||
|
||||
const classes = useStyles();
|
||||
|
||||
return (
|
||||
<Drawer
|
||||
open={open}
|
||||
onClose={() => {}}
|
||||
PaperProps={{ style: { position: 'absolute', width: '70%' } }}
|
||||
BackdropProps={{ style: { position: 'absolute' } }}
|
||||
ModalProps={{
|
||||
container: containerEl,
|
||||
style: { position: 'absolute' },
|
||||
}}
|
||||
variant="temporary"
|
||||
>
|
||||
<Box height="100%">
|
||||
<Box
|
||||
display="flex"
|
||||
flexDirection="row"
|
||||
alignItems="center"
|
||||
p={2}
|
||||
bgcolor={theme.palette.secondary.main}
|
||||
>
|
||||
<Settings htmlColor={theme.palette.secondary.contrastText} />
|
||||
{appTitle && (
|
||||
<Typography variant="h6" className={classes.sidebarTitle}>
|
||||
{appTitle}
|
||||
</Typography>
|
||||
)}
|
||||
</Box>
|
||||
<List disablePadding>
|
||||
{items.map((item) => (
|
||||
<>
|
||||
<ListItem
|
||||
button
|
||||
onClick={item.onClick}
|
||||
style={{ color: theme.palette.text.secondary }}
|
||||
>
|
||||
{item?.icon && <ListItemIcon>{item.icon}</ListItemIcon>}
|
||||
<ListItemText primary={item.text} />
|
||||
</ListItem>
|
||||
<Divider />
|
||||
</>
|
||||
))}
|
||||
</List>
|
||||
<BackAction handleClose={handleClose} />
|
||||
</Box>
|
||||
</Drawer>
|
||||
);
|
||||
};
|
||||
|
||||
export default PhoneDrawer;
|
||||
@@ -9,9 +9,7 @@ export interface AppContentTypes {
|
||||
|
||||
export interface AppWrapperTypes {
|
||||
id?: string;
|
||||
appName?: string;
|
||||
children?: JSX.Element | JSX.Element[];
|
||||
style?: CSSProperties;
|
||||
handleClickAway?: (...args: any[]) => void;
|
||||
sideMenu?: string[];
|
||||
}
|
||||
Reference in new issue
Block a user