add electron
This commit is contained in:
61 files changed
+7217
-913
No files matched your search
@@ -1,6 +1,2 @@
|
||||
node_modules/
|
||||
data/
|
||||
messages/
|
||||
data.db*
|
||||
errors.log
|
||||
build/
|
||||
@@ -3,5 +3,6 @@
|
||||
"useTabs": true,
|
||||
"semi": false,
|
||||
"arrowParens": "avoid",
|
||||
"singleQuote": true
|
||||
"singleQuote": true,
|
||||
"quoteProps": "consistent"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
width="64"
|
||||
height="64"
|
||||
viewBox="0 0 16.933 16.933"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
sodipodi:docname="icon.svg"
|
||||
xml:space="preserve"
|
||||
inkscape:version="1.2 (dc2aedaf03, 2022-05-15)"
|
||||
inkscape:export-filename="icon.png"
|
||||
inkscape:export-xdpi="192"
|
||||
inkscape:export-ydpi="192"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"><defs
|
||||
id="defs12" /><sodipodi:namedview
|
||||
id="namedview10"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
showguides="false"
|
||||
inkscape:lockguides="false"
|
||||
inkscape:zoom="4.6790582"
|
||||
inkscape:cx="19.341499"
|
||||
inkscape:cy="30.241129"
|
||||
inkscape:window-width="1880"
|
||||
inkscape:window-height="1029"
|
||||
inkscape:window-x="40"
|
||||
inkscape:window-y="27"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg8"><sodipodi:guide
|
||||
position="8.4665003,16.933"
|
||||
orientation="1,0"
|
||||
id="guide4397"
|
||||
inkscape:locked="false" /></sodipodi:namedview><ellipse
|
||||
style="display:inline;fill:#e4f2fb;fill-opacity:1;stroke:none;stroke-width:0.0594033;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="path4390"
|
||||
cx="8.4665003"
|
||||
cy="8.4664993"
|
||||
rx="8.4665003"
|
||||
ry="8.4664993"
|
||||
inkscape:label="bg" /><g
|
||||
id="g3609"
|
||||
style="display:inline;fill:#006aff;fill-opacity:1;stroke:none"
|
||||
inkscape:label="rects"
|
||||
transform="matrix(0.8251288,0,0,0.8251288,1.4805471,1.1537833)"><rect
|
||||
style="display:inline;fill:#006aff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.0529156;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect553"
|
||||
width="12.195786"
|
||||
height="7.4559388"
|
||||
x="2.3686068"
|
||||
y="7.0964556"
|
||||
ry="0.42605168"
|
||||
rx="0" /><rect
|
||||
style="fill:#006aff;fill-opacity:1;stroke:none;stroke-width:0.0529156;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect1298"
|
||||
width="7.9086194"
|
||||
height="0.61245155"
|
||||
x="4.5121903"
|
||||
y="5.8049808"
|
||||
ry="0.15063256"
|
||||
rx="0" /><rect
|
||||
style="fill:#006aff;fill-opacity:1;stroke:none;stroke-width:0.0529156;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect1300"
|
||||
width="6.2136002"
|
||||
height="0.54604334"
|
||||
x="5.3596997"
|
||||
y="4.7135482"
|
||||
ry="0.15063256" /><path
|
||||
id="rect1302"
|
||||
style="fill:#006aff;fill-opacity:1;stroke:none;stroke-width:0.0529156;stroke-linejoin:round"
|
||||
d="m 4.2770269,2.7176647 h 8.3789461 c 0.32337,0 0.583701,0.2603308 0.583701,0.5837013 V 5.7209052 L 11.716071,4.130462 H 5.2117814 L 3.6933256,5.7209052 V 3.301366 c 0,-0.3233705 0.2603308,-0.5837013 0.5837013,-0.5837013 z"
|
||||
sodipodi:nodetypes="sssccccss" /></g><path
|
||||
d="M 7.6381327,10.151524 5.0183488,11.521238 7.6381327,8.6959968 9.2388826,10.151524 12.004714,8.9352842 9.2397077,11.607051"
|
||||
fill="#ffffff"
|
||||
id="path4"
|
||||
style="display:inline;stroke-width:0.825128"
|
||||
inkscape:label="logo" /></svg>
|
||||
|
After Width: | Height: | Size: 3.3 KiB |
@@ -0,0 +1,7 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@babel/preset-env',
|
||||
'@babel/preset-typescript',
|
||||
['@babel/preset-react', { runtime: 'automatic' }],
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { BrowserWindow, dialog, ipcMain } from 'electron'
|
||||
import { scan } from '../ts'
|
||||
// import { scan } from '../ts'
|
||||
|
||||
let listeners = (mainWindow: BrowserWindow) => {
|
||||
let events = {
|
||||
'get-paths': (_, message) => {
|
||||
dialog
|
||||
.showOpenDialog({
|
||||
properties: ['openDirectory', 'multiSelections'],
|
||||
})
|
||||
.then(data => {
|
||||
mainWindow.webContents.send('add-paths', data)
|
||||
})
|
||||
},
|
||||
'scan': (_, { paths }: { paths: string[] }) => {
|
||||
scan(paths, {}, (...progress) => {
|
||||
mainWindow.webContents.send('update-progress', progress)
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
for (const chanel in events) ipcMain.on(chanel, events[chanel])
|
||||
}
|
||||
|
||||
export default listeners
|
||||
@@ -0,0 +1,47 @@
|
||||
import { app, BrowserWindow } from 'electron'
|
||||
import * as path from 'path'
|
||||
import * as url from 'url'
|
||||
import listeners from './listeners'
|
||||
|
||||
import zip from 'node-zip'
|
||||
|
||||
console.log(zip)
|
||||
|
||||
let mainWindow: Electron.BrowserWindow | null
|
||||
|
||||
function createWindow() {
|
||||
mainWindow = new BrowserWindow({
|
||||
width: 1100,
|
||||
height: 700,
|
||||
icon: 'assets/icon.png',
|
||||
backgroundColor: '#efe9f4',
|
||||
webPreferences: {
|
||||
nodeIntegration: false,
|
||||
contextIsolation: true,
|
||||
preload: path.join(__dirname, 'preload.js'),
|
||||
},
|
||||
})
|
||||
|
||||
mainWindow.loadFile('build/index.html')
|
||||
|
||||
mainWindow.on('closed', () => {
|
||||
mainWindow = null
|
||||
})
|
||||
}
|
||||
|
||||
app.on('ready', createWindow)
|
||||
.whenReady()
|
||||
.then(() => listeners(mainWindow!))
|
||||
.catch(e => console.error(e))
|
||||
|
||||
app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') {
|
||||
app.quit()
|
||||
}
|
||||
})
|
||||
|
||||
app.on('activate', () => {
|
||||
if (BrowserWindow.getAllWindows().length === 0) {
|
||||
createWindow()
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,14 @@
|
||||
import { contextBridge, ipcRenderer } from 'electron'
|
||||
|
||||
export const api = {
|
||||
send: (channel: string, data?: any) => ipcRenderer.send(channel, data),
|
||||
|
||||
on: (channel: string, callback: (data: any) => void) => {
|
||||
ipcRenderer.on(channel, (e, data) => callback(data))
|
||||
},
|
||||
|
||||
off: (channel: string, callback: (_: any, data: any) => void) =>
|
||||
ipcRenderer.removeListener(channel, callback),
|
||||
}
|
||||
|
||||
contextBridge.exposeInMainWorld('Main', api)
|
||||
+32
-11
@@ -1,22 +1,43 @@
|
||||
{
|
||||
"name": "messenger-archive",
|
||||
"version": "1.0.0",
|
||||
"main": "build/index.js",
|
||||
"type": "module",
|
||||
"author": "Mateusz Pstrucha",
|
||||
"license": "MIT",
|
||||
"description": "",
|
||||
"main": "build/electron.js",
|
||||
"scripts": {
|
||||
"dev": "tsc-watch --onSuccess \"node .\""
|
||||
"start": "yarn webpack && yarn electron . --trace-warnings"
|
||||
},
|
||||
"author": "Mateusz Pstrucha",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.18.5",
|
||||
"@babel/preset-env": "^7.18.2",
|
||||
"@babel/preset-react": "^7.17.12",
|
||||
"@babel/preset-typescript": "^7.17.12",
|
||||
"babel-loader": "^8.2.5",
|
||||
"electron": "^19.0.6",
|
||||
"electron-builder": "^23.1.0",
|
||||
"electron-packager": "^15.5.1",
|
||||
"electron-rebuild": "^3.2.7",
|
||||
"html-webpack-plugin": "^5.5.0",
|
||||
"ts-loader": "^9.3.1",
|
||||
"webpack": "^5.73.0",
|
||||
"webpack-cli": "^4.10.0",
|
||||
"webpack-dev-server": "^4.9.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/react": "^18.0.14",
|
||||
"@types/react-dom": "^18.0.5",
|
||||
"css-loader": "^6.7.1",
|
||||
"file-loader": "^6.2.0",
|
||||
"node-loader": "^2.0.0",
|
||||
"node-zip": "^1.1.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"sass": "^1.53.0",
|
||||
"sass-loader": "^13.0.2",
|
||||
"sqlite3": "^5.0.8",
|
||||
"style-loader": "^3.3.1",
|
||||
"typescript": "^4.7.4",
|
||||
"utf8": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/sqlite3": "^3.1.8",
|
||||
"@types/utf8": "^3.0.1",
|
||||
"tsc": "^2.0.4",
|
||||
"tsc-watch": "^5.0.3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
|
||||
<title>electron</title>
|
||||
|
||||
<script>
|
||||
const global = globalThis
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
-127
@@ -1,127 +0,0 @@
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA synchronous = NORMAL;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS group_photos (
|
||||
uri varchar,
|
||||
creation timestamp,
|
||||
inbox char(10),
|
||||
PRIMARY KEY (uri),
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS inboxes (
|
||||
id char(10),
|
||||
cat varchar,
|
||||
title varchar,
|
||||
thread varchar,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS participants (
|
||||
inbox char(10),
|
||||
uname int,
|
||||
participates boolean,
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id),
|
||||
UNIQUE (inbox, uname)
|
||||
);
|
||||
|
||||
--
|
||||
-- MEDIA
|
||||
--
|
||||
--
|
||||
CREATE TABLE IF NOT EXISTS photos (
|
||||
uri varchar,
|
||||
created timestamp,
|
||||
inbox char(10),
|
||||
message_sender varchar,
|
||||
message_created timestamp,
|
||||
PRIMARY KEY (uri),
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id),
|
||||
FOREIGN KEY (message_sender) REFERENCES messages(sender),
|
||||
FOREIGN KEY (message_created) REFERENCES messages(created)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS files (
|
||||
uri varchar,
|
||||
created timestamp,
|
||||
inbox char(10),
|
||||
message_sender varchar,
|
||||
message_created timestamp,
|
||||
PRIMARY KEY (uri),
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id),
|
||||
FOREIGN KEY (message_sender) REFERENCES messages(sender),
|
||||
FOREIGN KEY (message_created) REFERENCES messages(created)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS videos (
|
||||
uri varchar,
|
||||
created timestamp,
|
||||
inbox char(10),
|
||||
message_sender varchar,
|
||||
message_created timestamp,
|
||||
PRIMARY KEY (uri),
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id),
|
||||
FOREIGN KEY (message_sender) REFERENCES messages(sender),
|
||||
FOREIGN KEY (message_created) REFERENCES messages(created)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS audios (
|
||||
uri varchar,
|
||||
created timestamp,
|
||||
inbox char(10),
|
||||
message_sender varchar,
|
||||
message_created timestamp,
|
||||
PRIMARY KEY (uri),
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id),
|
||||
FOREIGN KEY (message_sender) REFERENCES messages(sender),
|
||||
FOREIGN KEY (message_created) REFERENCES messages(created)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS gifs (
|
||||
uri varchar,
|
||||
created timestamp,
|
||||
inbox char(10),
|
||||
message_sender varchar,
|
||||
message_created timestamp,
|
||||
PRIMARY KEY (uri),
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id),
|
||||
FOREIGN KEY (message_sender) REFERENCES messages(sender),
|
||||
FOREIGN KEY (message_created) REFERENCES messages(created)
|
||||
);
|
||||
|
||||
--
|
||||
-- MESSAGES
|
||||
--
|
||||
--
|
||||
CREATE TABLE IF NOT EXISTS messages (
|
||||
sender varchar,
|
||||
created timestamp(3),
|
||||
inbox char(10),
|
||||
content varchar,
|
||||
cat varchar,
|
||||
unsent boolean,
|
||||
UNIQUE (sender, created, inbox)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS reactions (
|
||||
message_sender varchar,
|
||||
message_created timestamp(3),
|
||||
inbox char(10),
|
||||
reaction varchar,
|
||||
actor varchar,
|
||||
UNIQUE (message_sender, message_created, actor, inbox),
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id),
|
||||
FOREIGN KEY (message_sender) REFERENCES messages(sender),
|
||||
FOREIGN KEY (message_created) REFERENCES messages(created)
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS shares (
|
||||
message_sender varchar,
|
||||
message_created timestamp(3),
|
||||
inbox char(10),
|
||||
link varchar,
|
||||
UNIQUE (message_sender, message_created, inbox),
|
||||
FOREIGN KEY (inbox) REFERENCES inboxes(id),
|
||||
FOREIGN KEY (message_sender) REFERENCES messages(sender),
|
||||
FOREIGN KEY (message_created) REFERENCES messages(created)
|
||||
);
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
import { api } from '../../electron/preload'
|
||||
|
||||
declare global {
|
||||
// eslint-disable-next-line
|
||||
interface Window {
|
||||
Main: typeof api
|
||||
}
|
||||
}
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
declare module '*.png';
|
||||
declare module '*.jpeg';
|
||||
declare module '*.jpg';
|
||||
declare module '*.gif';
|
||||
@@ -0,0 +1,47 @@
|
||||
import { createContext, useContext, useState } from 'react'
|
||||
|
||||
import Intro from './components/Intro/Intro'
|
||||
import Menu from './components/Menu/Menu'
|
||||
|
||||
import './index.css'
|
||||
|
||||
const contextPane = createContext('')
|
||||
|
||||
function Pane({ children, id }: any) {
|
||||
const pane = useContext(contextPane)
|
||||
|
||||
console.log(id, pane)
|
||||
|
||||
return (
|
||||
<div className="pane" style={{ display: pane == id ? 'initial' : 'none' }}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function Main() {
|
||||
const [pane, setPane] = useState('import')
|
||||
|
||||
// const panes: { [id: string]: JSX.Element } = {
|
||||
// import: <Intro />,
|
||||
// scanner: <Scanner />,
|
||||
// }
|
||||
|
||||
return (
|
||||
<div>
|
||||
{/* {pane == 'intro' && }
|
||||
|
||||
{pane == 'scanning' && } */}
|
||||
|
||||
<Menu setPane={id => setPane(id)} />
|
||||
|
||||
<div className="container">
|
||||
<contextPane.Provider value={pane}>
|
||||
<Pane id="import" children={<Intro />} />
|
||||
</contextPane.Provider>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Main
|
||||
@@ -0,0 +1,20 @@
|
||||
import './button.sass'
|
||||
|
||||
function Button({
|
||||
label,
|
||||
action,
|
||||
icon,
|
||||
}: {
|
||||
label: string
|
||||
action: () => any
|
||||
icon?: string
|
||||
}) {
|
||||
return (
|
||||
<span className="button" onClick={action}>
|
||||
{icon && <i className={`icon-${icon}`}></i>}
|
||||
{label}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
export default Button
|
||||
@@ -0,0 +1,22 @@
|
||||
.button
|
||||
cursor: pointer
|
||||
margin: 0 .2em
|
||||
padding: 0.3em .5em
|
||||
padding-left: .3em
|
||||
border: 2px solid var(--color-secondary)
|
||||
color: var(--color-secondary)
|
||||
background-color: var(--color-light)
|
||||
border-radius: .5em
|
||||
text-transform: uppercase
|
||||
// font-weight: bold
|
||||
font-family: 'Monsterrat'
|
||||
user-select: none
|
||||
|
||||
&:hover
|
||||
background-color: var(--color-secondary)
|
||||
color: var(--color-ternary)
|
||||
|
||||
i
|
||||
// border-right: 1px solid red
|
||||
padding-right: .3em
|
||||
margin-right: .2em
|
||||
@@ -0,0 +1,93 @@
|
||||
import { useEffect, useReducer, useState } from 'react'
|
||||
import Button from '../Button/Button'
|
||||
import Progress from '../Progress/Progress'
|
||||
|
||||
import './intro.sass'
|
||||
|
||||
type status = {
|
||||
[step: string]: [string, number]
|
||||
}
|
||||
|
||||
function beginScan(paths: string[]) {
|
||||
window.Main.send('scan', { paths })
|
||||
}
|
||||
|
||||
function Intro() {
|
||||
const [paths, setPaths] = useState(['/home/mathias/Desktop/messages']),
|
||||
[status, setStatus] = useState({
|
||||
main: ['Preparing', 50],
|
||||
sub: ['Checking directories', 10],
|
||||
} as status),
|
||||
[log, addLog] = useState([] as any[])
|
||||
|
||||
useEffect(() => {
|
||||
window.Main.on('add-paths', ({ canceled, filePaths }) => {
|
||||
!canceled &&
|
||||
setPaths(prev => [
|
||||
...prev,
|
||||
...filePaths.filter(p => !prev.includes(p)),
|
||||
])
|
||||
})
|
||||
|
||||
window.Main.on('update-progress', (data: any) => {
|
||||
console.log(data)
|
||||
// setStatus(prev => ({ ...prev, ...data }))
|
||||
addLog(prev => [...prev, data])
|
||||
})
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="intro">
|
||||
<span className="header">Select paths to scan</span>
|
||||
<p>
|
||||
Add folders with <code>filtered_threads</code>,{' '}
|
||||
<code>archived_threads</code>, <code>inbox</code> or{' '}
|
||||
<code>message_requests</code> inside
|
||||
</p>
|
||||
<div className="controls">
|
||||
<Button
|
||||
label="Open"
|
||||
action={() => window.Main.send('get-paths')}
|
||||
icon="plus-squared"
|
||||
/>
|
||||
</div>
|
||||
<div className="paths">
|
||||
{paths.map(p => (
|
||||
<div key={p}>{p}</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{paths.length > 0 && (
|
||||
<Button
|
||||
label="Scan"
|
||||
action={() => beginScan(paths)}
|
||||
icon="search"
|
||||
/>
|
||||
)}
|
||||
|
||||
{status.main && (
|
||||
<div className="bars">
|
||||
<Progress label={status.main[0]} status={status.main[1]} />
|
||||
<Progress label={status.sub[0]} status={status.sub[1]} />
|
||||
{/* <div className="logs">
|
||||
{log.map((l, i) => (
|
||||
<div key={i}>
|
||||
{Object.keys(l).map((k, j) => {
|
||||
if (k == 'err')
|
||||
return (
|
||||
<span key={j}>
|
||||
{l[k]?.message ?? l[k]?.code ?? l[k]}
|
||||
</span>
|
||||
)
|
||||
else return `${k} ${l[k][0]} ${l[k][1]}%`
|
||||
})}
|
||||
</div>
|
||||
))}
|
||||
</div> */}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Intro
|
||||
@@ -0,0 +1,62 @@
|
||||
.intro
|
||||
// position: fixed
|
||||
top: 1em
|
||||
right: 1em
|
||||
bottom: 1em
|
||||
left: 1em
|
||||
// background-color: var(--color-ternary)
|
||||
color: var(--color-dark)
|
||||
padding: 1em
|
||||
/* text-align: center; */
|
||||
display: flex
|
||||
flex-direction: column
|
||||
align-items: center
|
||||
backdrop-filter: blur(5px)
|
||||
z-index: 3
|
||||
border: 1px solid #06f5
|
||||
border-radius: 0.5em
|
||||
|
||||
.header
|
||||
font-size: 2em
|
||||
font-family: 'Roboto'
|
||||
|
||||
.controls
|
||||
margin: 1em 0
|
||||
|
||||
p
|
||||
max-width: 24em
|
||||
text-align: center
|
||||
|
||||
.paths
|
||||
min-width: 25em
|
||||
padding: 0.5em
|
||||
padding-bottom: .6em
|
||||
background-color: #0002
|
||||
border-radius: 3px
|
||||
margin-bottom: 1em
|
||||
|
||||
div:nth-child(2n)
|
||||
background-color: unset
|
||||
|
||||
div
|
||||
width: 100%
|
||||
// padding: .5em
|
||||
background-color: #fff1
|
||||
|
||||
i
|
||||
float: right
|
||||
cursor: pointer
|
||||
|
||||
&:hover
|
||||
color: var(--color-secondary)
|
||||
|
||||
.bars
|
||||
margin: 1em 0
|
||||
width: 100%
|
||||
|
||||
.logs
|
||||
font-family: 'Roboto Mono'
|
||||
font-size: .75em
|
||||
|
||||
div span
|
||||
color: red
|
||||
@@ -0,0 +1,61 @@
|
||||
import { useState } from 'react'
|
||||
import './menu.sass'
|
||||
import icon from '../../../assets/icon.png'
|
||||
|
||||
function Menu({ setPane }: { setPane: (id: string) => void }) {
|
||||
const [active, setActive] = useState('convo')
|
||||
|
||||
const options = [
|
||||
['convo', 'chat-empty', 'View conversation'],
|
||||
['media', 'picture', 'View media'],
|
||||
['search', 'search', 'Search'],
|
||||
['stats', 'chart-bar', 'View statistics'],
|
||||
],
|
||||
bottomOptions = [
|
||||
['import', 'download', 'Import messages'],
|
||||
['settings', 'cog-alt', 'Settings'],
|
||||
]
|
||||
|
||||
function change(id: string) {
|
||||
setActive(id)
|
||||
setPane(id)
|
||||
}
|
||||
|
||||
return (
|
||||
// view convo
|
||||
// search
|
||||
// view media
|
||||
// stats
|
||||
<div className="menu">
|
||||
<img src={icon} alt="" />
|
||||
<div className="lists">
|
||||
<div className="list">
|
||||
{options.map(([id, icon, title]) => (
|
||||
<i
|
||||
key={id}
|
||||
data-active={id == active}
|
||||
className={`icon-${icon}`}
|
||||
title={title}
|
||||
onClick={() => change(id)}
|
||||
></i>
|
||||
))}
|
||||
</div>
|
||||
<div className="list bottom">
|
||||
{bottomOptions.map(([id, icon, title]) => (
|
||||
<i
|
||||
key={id}
|
||||
data-active={id == active}
|
||||
className={`icon-${icon}`}
|
||||
title={title}
|
||||
onClick={() => change(id)}
|
||||
></i>
|
||||
))}
|
||||
{/* <i className="icon-download import"></i>
|
||||
<i className="icon-cog-alt settings"></i> */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Menu
|
||||
@@ -0,0 +1,67 @@
|
||||
.menu
|
||||
position: fixed
|
||||
left: 0
|
||||
top: 0
|
||||
height: 100%
|
||||
background-color: var(--color-primary)
|
||||
color: var(--color-light)
|
||||
padding: .75em
|
||||
font-size: 1.2em
|
||||
|
||||
display: flex
|
||||
flex-direction: column
|
||||
|
||||
img
|
||||
border-bottom: 1px solid #fffa
|
||||
padding-bottom: .75em
|
||||
margin-bottom: 1em
|
||||
width: 2em
|
||||
|
||||
.lists
|
||||
display: flex
|
||||
flex-direction: column
|
||||
height: 100%
|
||||
justify-content: space-between
|
||||
|
||||
.list
|
||||
display: flex
|
||||
flex-direction: column
|
||||
align-items: center
|
||||
|
||||
&.bottom
|
||||
margin-bottom: unset
|
||||
margin-top: 1em
|
||||
|
||||
i
|
||||
margin-bottom: unset
|
||||
margin-top: 1em
|
||||
|
||||
i
|
||||
margin-bottom: 1em
|
||||
// padding: .5em
|
||||
width: 2em
|
||||
width: 1.5em
|
||||
height: 1.5em
|
||||
cursor: pointer
|
||||
position: relative
|
||||
|
||||
&:hover:after
|
||||
opacity: .5
|
||||
|
||||
&[data-active=true]:after
|
||||
opacity: 1
|
||||
|
||||
&:after
|
||||
content: ""
|
||||
opacity: 0
|
||||
width: 100%
|
||||
background-color: var(--color-light)
|
||||
height: 4px
|
||||
left: 0
|
||||
bottom: 0
|
||||
position: absolute
|
||||
border-radius: 2px
|
||||
|
||||
// border-radius: 100%
|
||||
// background-color: var(--color-light)
|
||||
// color: var(--color-primary)
|
||||
@@ -0,0 +1,14 @@
|
||||
import './progress.sass'
|
||||
|
||||
function Progress({ label, status }: { label: string; status: number }) {
|
||||
return (
|
||||
<div className="progress">
|
||||
<span className="label">
|
||||
{label} [{status}%]
|
||||
</span>
|
||||
<div className="status" style={{ width: `${status}%` }}></div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Progress
|
||||
@@ -0,0 +1,15 @@
|
||||
.progress
|
||||
text-align: center
|
||||
background-color: #0001
|
||||
margin: .5em 0
|
||||
padding-top: 0.4em
|
||||
|
||||
.label
|
||||
// color: #fff
|
||||
font-family: 'Roboto Mono'
|
||||
font-size: .75em
|
||||
|
||||
.status
|
||||
margin-top: .5em
|
||||
border-bottom: 2px solid var(--color-primary)
|
||||
transition: .5s
|
||||
@@ -0,0 +1,19 @@
|
||||
import Progress from '../Progress/Progress'
|
||||
import './scanner.sass'
|
||||
|
||||
function Scanner() {
|
||||
// prepare
|
||||
// scan for inboxes
|
||||
// parsing inboxes
|
||||
// parsing parts
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="header">Processing messages</div>
|
||||
<Progress label="main" status={50} />
|
||||
<Progress label="sub" status={25} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Scanner
|
||||
@@ -0,0 +1,3 @@
|
||||
.header
|
||||
font-size: 2em
|
||||
font-family: 'Roboto'
|
||||
@@ -0,0 +1,30 @@
|
||||
Font license info
|
||||
|
||||
|
||||
## Font Awesome
|
||||
|
||||
Copyright (C) 2016 by Dave Gandy
|
||||
|
||||
Author: Dave Gandy
|
||||
License: SIL ()
|
||||
Homepage: http://fortawesome.github.com/Font-Awesome/
|
||||
|
||||
|
||||
## Fontelico
|
||||
|
||||
Copyright (C) 2012 by Fontello project
|
||||
|
||||
Author: Crowdsourced, for Fontello project
|
||||
License: SIL (http://scripts.sil.org/OFL)
|
||||
Homepage: http://fontello.com
|
||||
|
||||
|
||||
## MFG Labs
|
||||
|
||||
Copyright (C) 2012 by Daniel Bruce
|
||||
|
||||
Author: MFG Labs
|
||||
License: SIL (http://scripts.sil.org/OFL)
|
||||
Homepage: http://www.mfglabs.com/
|
||||
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
This webfont is generated by https://fontello.com open source project.
|
||||
|
||||
|
||||
================================================================================
|
||||
Please, note, that you should obey original font licenses, used to make this
|
||||
webfont pack. Details available in LICENSE.txt file.
|
||||
|
||||
- Usually, it's enough to publish content of LICENSE.txt file somewhere on your
|
||||
site in "About" section.
|
||||
|
||||
- If your project is open-source, usually, it will be ok to make LICENSE.txt
|
||||
file publicly available in your repository.
|
||||
|
||||
- Fonts, used in Fontello, don't require a clickable link on your site.
|
||||
But any kind of additional authors crediting is welcome.
|
||||
================================================================================
|
||||
|
||||
|
||||
Comments on archive content
|
||||
---------------------------
|
||||
|
||||
- /font/* - fonts in different formats
|
||||
|
||||
- /css/* - different kinds of css, for all situations. Should be ok with
|
||||
twitter bootstrap. Also, you can skip <i> style and assign icon classes
|
||||
directly to text elements, if you don't mind about IE7.
|
||||
|
||||
- demo.html - demo file, to show your webfont content
|
||||
|
||||
- LICENSE.txt - license info about source fonts, used to build your one.
|
||||
|
||||
- config.json - keeps your settings. You can import it back into fontello
|
||||
anytime, to continue your work
|
||||
|
||||
|
||||
Why so many CSS files ?
|
||||
-----------------------
|
||||
|
||||
Because we like to fit all your needs :)
|
||||
|
||||
- basic file, <your_font_name>.css - is usually enough, it contains @font-face
|
||||
and character code definitions
|
||||
|
||||
- *-ie7.css - if you need IE7 support, but still don't wish to put char codes
|
||||
directly into html
|
||||
|
||||
- *-codes.css and *-ie7-codes.css - if you like to use your own @font-face
|
||||
rules, but still wish to benefit from css generation. That can be very
|
||||
convenient for automated asset build systems. When you need to update font -
|
||||
no need to manually edit files, just override old version with archive
|
||||
content. See fontello source code for examples.
|
||||
|
||||
- *-embedded.css - basic css file, but with embedded WOFF font, to avoid
|
||||
CORS issues in Firefox and IE9+, when fonts are hosted on the separate domain.
|
||||
We strongly recommend to resolve this issue by `Access-Control-Allow-Origin`
|
||||
server headers. But if you ok with dirty hack - this file is for you. Note,
|
||||
that data url moved to separate @font-face to avoid problems with <IE9, when
|
||||
string is too long.
|
||||
|
||||
- animate.css - use it to get ideas about spinner rotation animation.
|
||||
|
||||
|
||||
Attention for server setup
|
||||
--------------------------
|
||||
|
||||
You MUST setup server to reply with proper `mime-types` for font files -
|
||||
otherwise some browsers will fail to show fonts.
|
||||
|
||||
Usually, `apache` already has necessary settings, but `nginx` and other
|
||||
webservers should be tuned. Here is list of mime types for our file extensions:
|
||||
|
||||
- `application/vnd.ms-fontobject` - eot
|
||||
- `application/x-font-woff` - woff
|
||||
- `application/x-font-ttf` - ttf
|
||||
- `image/svg+xml` - svg
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"name": "",
|
||||
"css_prefix_text": "icon-",
|
||||
"css_use_suffix": false,
|
||||
"hinting": true,
|
||||
"units_per_em": 1000,
|
||||
"ascent": 850,
|
||||
"glyphs": [
|
||||
{
|
||||
"uid": "1a5cfa186647e8c929c2b17b9fc4dac1",
|
||||
"css": "plus-squared",
|
||||
"code": 61694,
|
||||
"src": "fontawesome"
|
||||
},
|
||||
{
|
||||
"uid": "5211af474d3a9848f67f945e2ccaf143",
|
||||
"css": "cancel",
|
||||
"code": 59395,
|
||||
"src": "fontawesome"
|
||||
},
|
||||
{
|
||||
"uid": "f755a58fb985eeb70bd47d9b31892a34",
|
||||
"css": "minus-squared",
|
||||
"code": 61766,
|
||||
"src": "fontawesome"
|
||||
},
|
||||
{
|
||||
"uid": "ec21fe3492bb04d9e29103c319556ed8",
|
||||
"css": "search",
|
||||
"code": 62733,
|
||||
"src": "mfglabs"
|
||||
},
|
||||
{
|
||||
"uid": "381da2c2f7fd51f8de877c044d7f439d",
|
||||
"css": "picture",
|
||||
"code": 59392,
|
||||
"src": "fontawesome"
|
||||
},
|
||||
{
|
||||
"uid": "31951fbb9820ed0690f675b3d495c8da",
|
||||
"css": "chat-empty",
|
||||
"code": 61670,
|
||||
"src": "fontawesome"
|
||||
},
|
||||
{
|
||||
"uid": "266d5d9adf15a61800477a5acf9a4462",
|
||||
"css": "chart-bar",
|
||||
"code": 59393,
|
||||
"src": "fontawesome"
|
||||
},
|
||||
{
|
||||
"uid": "98687378abd1faf8f6af97c254eb6cd6",
|
||||
"css": "cog-alt",
|
||||
"code": 59394,
|
||||
"src": "fontawesome"
|
||||
},
|
||||
{
|
||||
"uid": "f0c301ac841dafc38d8eb1b933fc73e5",
|
||||
"css": "spin2",
|
||||
"code": 59441,
|
||||
"src": "fontelico"
|
||||
},
|
||||
{
|
||||
"uid": "9a76bc135eac17d2c8b8ad4a5774fc87",
|
||||
"css": "download",
|
||||
"code": 59396,
|
||||
"src": "fontawesome"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+85
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
Animation example, for spinners
|
||||
*/
|
||||
.animate-spin {
|
||||
-moz-animation: spin 2s infinite linear;
|
||||
-o-animation: spin 2s infinite linear;
|
||||
-webkit-animation: spin 2s infinite linear;
|
||||
animation: spin 2s infinite linear;
|
||||
display: inline-block;
|
||||
}
|
||||
@-moz-keyframes spin {
|
||||
0% {
|
||||
-moz-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-transform: rotate(359deg);
|
||||
-o-transform: rotate(359deg);
|
||||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
||||
@-webkit-keyframes spin {
|
||||
0% {
|
||||
-moz-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-transform: rotate(359deg);
|
||||
-o-transform: rotate(359deg);
|
||||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
||||
@-o-keyframes spin {
|
||||
0% {
|
||||
-moz-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-transform: rotate(359deg);
|
||||
-o-transform: rotate(359deg);
|
||||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
||||
@-ms-keyframes spin {
|
||||
0% {
|
||||
-moz-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-transform: rotate(359deg);
|
||||
-o-transform: rotate(359deg);
|
||||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
||||
@keyframes spin {
|
||||
0% {
|
||||
-moz-transform: rotate(0deg);
|
||||
-o-transform: rotate(0deg);
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-moz-transform: rotate(359deg);
|
||||
-o-transform: rotate(359deg);
|
||||
-webkit-transform: rotate(359deg);
|
||||
transform: rotate(359deg);
|
||||
}
|
||||
}
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
|
||||
.icon-picture:before { content: '\e800'; } /* '' */
|
||||
.icon-chart-bar:before { content: '\e801'; } /* '' */
|
||||
.icon-cog-alt:before { content: '\e802'; } /* '' */
|
||||
.icon-cancel:before { content: '\e803'; } /* '' */
|
||||
.icon-download:before { content: '\e804'; } /* '' */
|
||||
.icon-spin2:before { content: '\e831'; } /* '' */
|
||||
.icon-chat-empty:before { content: '\f0e6'; } /* '' */
|
||||
.icon-plus-squared:before { content: '\f0fe'; } /* '' */
|
||||
.icon-minus-squared:before { content: '\f146'; } /* '' */
|
||||
.icon-search:before { content: '\f50d'; } /* '' */
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url('../font/fontello.eot?11448678');
|
||||
src: url('../font/fontello.eot?11448678#iefix') format('embedded-opentype'),
|
||||
url('../font/fontello.svg?11448678#fontello') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url('data:application/octet-stream;base64,d09GRgABAAAAABWUAA8AAAAAIuQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABWAAAADsAAABUIIslek9TLzIAAAGUAAAARAAAAGA+I1c8Y21hcAAAAdgAAACUAAACFg6hmkNjdnQgAAACbAAAAAsAAAAOAAAAAGZwZ20AAAJ4AAAG7QAADgxiLvl6Z2FzcAAACWgAAAAIAAAACAAAABBnbHlmAAAJcAAACQUAAAw0T186gmhlYWQAABJ4AAAAMwAAADYhRWFxaGhlYQAAEqwAAAAgAAAAJAfAA+tobXR4AAASzAAAACkAAAAsKW3/7WxvY2EAABL4AAAAGAAAABgRGhOQbWF4cAAAExAAAAAgAAAAIAFsD0huYW1lAAATMAAAAXQAAALNzZ0ZGnBvc3QAABSkAAAAdAAAAJj2mzZ6cHJlcAAAFRgAAAB6AAAAnH62O7Z4nGNgZGBg4GIwYLBjYHJx8wlh4MtJLMljkGJgYYAAkDwymzEnMz2RgQPGA8qxgGkOIGaDiAIAJjsFSAB4nGNgYT7COIGBlYGBqYppDwMDQw+EZnzAYMjIBBRlYGVmwAoC0lxTGA68YPjKyxz0P4shinkNwzSgMCOKIiYAkisM6nic7ZExDsIwEATHwQSICCWvoMkn8goelIpnRlc6RdqEPdtC8AfOGkt7ktfSLnAEDuIhIoQXAZ9J25D3B7q8jzylb5xpaC3akOa0LePa7zsYv/prgt7cP8d1I8+on1tOcrtk/5b/XPM9VdV5qgVvwipKD6t4c1bx9qzirdpQUMqkuaC8SVtBybOMBXXA2hfo3sPuL3d4nGNgQAYAAA4AAQB4nK1Xa1sbx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2NT8CNgc3PgI3LgEnND4BAR4BHwEWHwMUBw4BJyYnJicGIyInFjMyNjc+ASc0Jx4BFAYBiVWWVgE8NTYTEw8ZHisqVZZWVpZVarZoAmyybDAyRlUVGwIGDAECAQQDAwEcBQ4OBEVOAWq0AjYFDAgbCQQFBAMBAgoHHBRWRjIwl3AgEVqkQkVMAQ1IVFACfDpkOS1WHiAuCwoSBgg6ZHBmOEhMhJyCTgEJMRcFBAoHAQQEAQMGAwMBHgUYEhAodENOhEz9dA4WCiELAwUGCgECCAoBBAUXMQlKAzIvNIZKKyoneId2AAAAAgAA/7EDWQMLACMAMwBBQD4NAQABHwEEAwJMAgEAAQMBAAOABQEDBAEDBH4ABwABAAcBZwAEBgYEVwAEBAZfAAYEBk81NSMzFiMkIwgGHisBNTQmByM1NCYnIyIGBxUjIgYHFRQWNzMVFBY7ATI2NzUzMjYTERQGByEiJjURNDY3ITIWAsoUD7MWDkcPFAGyDxQBFg6yFgLine truncated
|
||||
}
|
||||
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
||||
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
||||
/*
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url('../font/fontello.svg?11448678#fontello') format('svg');
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
[class^="icon-"]:before, [class*=" icon-"]:before {
|
||||
font-family: "fontello";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: never;
|
||||
|
||||
display: inline-block;
|
||||
text-decoration: inherit;
|
||||
width: 1em;
|
||||
margin-right: .2em;
|
||||
text-align: center;
|
||||
/* opacity: .8; */
|
||||
|
||||
/* For safety - reset parent styles, that can break glyph codes*/
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
|
||||
/* fix buttons height, for twitter bootstrap */
|
||||
line-height: 1em;
|
||||
|
||||
/* Animation center compensation - margins should be symmetric */
|
||||
/* remove if not needed */
|
||||
margin-left: .2em;
|
||||
|
||||
/* you can be more comfortable with increased icons size */
|
||||
/* font-size: 120%; */
|
||||
|
||||
/* Font smoothing. That was taken from TWBS */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
/* Uncomment for 3D effect */
|
||||
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
||||
}
|
||||
|
||||
.icon-picture:before { content: '\e800'; } /* '' */
|
||||
.icon-chart-bar:before { content: '\e801'; } /* '' */
|
||||
.icon-cog-alt:before { content: '\e802'; } /* '' */
|
||||
.icon-cancel:before { content: '\e803'; } /* '' */
|
||||
.icon-download:before { content: '\e804'; } /* '' */
|
||||
.icon-spin2:before { content: '\e831'; } /* '' */
|
||||
.icon-chat-empty:before { content: '\f0e6'; } /* '' */
|
||||
.icon-plus-squared:before { content: '\f0fe'; } /* '' */
|
||||
.icon-minus-squared:before { content: '\f146'; } /* '' */
|
||||
.icon-search:before { content: '\f50d'; } /* '' */
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
|
||||
.icon-picture { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-chart-bar { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-cog-alt { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-cancel { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-download { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-spin2 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-chat-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-plus-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-minus-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-search { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
[class^="icon-"], [class*=" icon-"] {
|
||||
font-family: 'fontello';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
|
||||
/* fix buttons height */
|
||||
line-height: 1em;
|
||||
|
||||
/* you can be more comfortable with increased icons size */
|
||||
/* font-size: 120%; */
|
||||
}
|
||||
|
||||
.icon-picture { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-chart-bar { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-cog-alt { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-cancel { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-download { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-spin2 { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-chat-empty { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-plus-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-minus-squared { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
.icon-search { *zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = ' '); }
|
||||
Vendored
+66
@@ -0,0 +1,66 @@
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url('../font/fontello.eot?69098526');
|
||||
src: url('../font/fontello.eot?69098526#iefix') format('embedded-opentype'),
|
||||
url('../font/fontello.woff2?69098526') format('woff2'),
|
||||
url('../font/fontello.woff?69098526') format('woff'),
|
||||
url('../font/fontello.ttf?69098526') format('truetype'),
|
||||
url('../font/fontello.svg?69098526#fontello') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
||||
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
||||
/*
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url('../font/fontello.svg?69098526#fontello') format('svg');
|
||||
}
|
||||
}
|
||||
*/
|
||||
[class^="icon-"]:before, [class*=" icon-"]:before {
|
||||
font-family: "fontello";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: never;
|
||||
|
||||
display: inline-block;
|
||||
text-decoration: inherit;
|
||||
width: 1em;
|
||||
margin-right: .2em;
|
||||
text-align: center;
|
||||
/* opacity: .8; */
|
||||
|
||||
/* For safety - reset parent styles, that can break glyph codes*/
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
|
||||
/* fix buttons height, for twitter bootstrap */
|
||||
line-height: 1em;
|
||||
|
||||
/* Animation center compensation - margins should be symmetric */
|
||||
/* remove if not needed */
|
||||
margin-left: .2em;
|
||||
|
||||
/* you can be more comfortable with increased icons size */
|
||||
/* font-size: 120%; */
|
||||
|
||||
/* Font smoothing. That was taken from TWBS */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
/* Uncomment for 3D effect */
|
||||
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
||||
}
|
||||
|
||||
.icon-picture:before { content: '\e800'; } /* '' */
|
||||
.icon-chart-bar:before { content: '\e801'; } /* '' */
|
||||
.icon-cog-alt:before { content: '\e802'; } /* '' */
|
||||
.icon-cancel:before { content: '\e803'; } /* '' */
|
||||
.icon-download:before { content: '\e804'; } /* '' */
|
||||
.icon-spin2:before { content: '\e831'; } /* '' */
|
||||
.icon-chat-empty:before { content: '\f0e6'; } /* '' */
|
||||
.icon-plus-squared:before { content: '\f0fe'; } /* '' */
|
||||
.icon-minus-squared:before { content: '\f146'; } /* '' */
|
||||
.icon-search:before { content: '\f50d'; } /* '' */
|
||||
@@ -0,0 +1,252 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
html {
|
||||
font-size: 100%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-ms-text-size-adjust: 100%;
|
||||
}
|
||||
a:focus {
|
||||
outline: thin dotted #333;
|
||||
outline: 5px auto -webkit-focus-ring-color;
|
||||
outline-offset: -2px;
|
||||
}
|
||||
a:hover,
|
||||
a:active {
|
||||
outline: 0;
|
||||
}
|
||||
input {
|
||||
margin: 0;
|
||||
font-size: 100%;
|
||||
vertical-align: middle;
|
||||
*overflow: visible;
|
||||
line-height: normal;
|
||||
}
|
||||
input::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: #333;
|
||||
background-color: #fff;
|
||||
}
|
||||
a {
|
||||
color: #08c;
|
||||
text-decoration: none;
|
||||
}
|
||||
a:hover {
|
||||
color: #005580;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.row {
|
||||
margin-left: -20px;
|
||||
*zoom: 1;
|
||||
}
|
||||
.row:before,
|
||||
.row:after {
|
||||
display: table;
|
||||
content: "";
|
||||
line-height: 0;
|
||||
}
|
||||
.row:after {
|
||||
clear: both;
|
||||
}
|
||||
.span3 {
|
||||
float: left;
|
||||
min-height: 1px;
|
||||
margin-left: 20px;
|
||||
width: 220px;
|
||||
}
|
||||
.container {
|
||||
width: 940px;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
*zoom: 1;
|
||||
}
|
||||
.container:before,
|
||||
.container:after {
|
||||
display: table;
|
||||
content: "";
|
||||
line-height: 0;
|
||||
}
|
||||
.container:after {
|
||||
clear: both;
|
||||
}
|
||||
small {
|
||||
font-size: 85%;
|
||||
}
|
||||
h1 {
|
||||
margin: 10px 0;
|
||||
font-family: inherit;
|
||||
font-weight: bold;
|
||||
line-height: 20px;
|
||||
color: inherit;
|
||||
text-rendering: optimizelegibility;
|
||||
line-height: 40px;
|
||||
font-size: 38.5px;
|
||||
}
|
||||
h1 small {
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
color: #999;
|
||||
font-size: 24.5px;
|
||||
}
|
||||
|
||||
body {
|
||||
margin-top: 90px;
|
||||
}
|
||||
.header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
margin-left: -480px;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding-top: 10px;
|
||||
z-index: 10;
|
||||
}
|
||||
.footer {
|
||||
color: #ddd;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.footer a {
|
||||
color: #ccc;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.the-icons {
|
||||
font-size: 14px;
|
||||
line-height: 24px;
|
||||
}
|
||||
.switch {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 10px;
|
||||
color: #666;
|
||||
}
|
||||
.switch input {
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
.codesOn .i-name {
|
||||
display: none;
|
||||
}
|
||||
.codesOn .i-code {
|
||||
display: inline;
|
||||
}
|
||||
.i-code {
|
||||
display: none;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'fontello';
|
||||
src: url('./font/fontello.eot?40853709');
|
||||
src: url('./font/fontello.eot?40853709#iefix') format('embedded-opentype'),
|
||||
url('./font/fontello.woff?40853709') format('woff'),
|
||||
url('./font/fontello.ttf?40853709') format('truetype'),
|
||||
url('./font/fontello.svg?40853709#fontello') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
.demo-icon {
|
||||
font-family: "fontello";
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
speak: never;
|
||||
|
||||
display: inline-block;
|
||||
text-decoration: inherit;
|
||||
width: 1em;
|
||||
margin-right: .2em;
|
||||
text-align: center;
|
||||
/* opacity: .8; */
|
||||
|
||||
/* For safety - reset parent styles, that can break glyph codes*/
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
|
||||
/* fix buttons height, for twitter bootstrap */
|
||||
line-height: 1em;
|
||||
|
||||
/* Animation center compensation - margins should be symmetric */
|
||||
/* remove if not needed */
|
||||
margin-left: .2em;
|
||||
|
||||
/* You can be more comfortable with increased icons size */
|
||||
/* font-size: 120%; */
|
||||
|
||||
/* Font smoothing. That was taken from TWBS */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
/* Uncomment for 3D effect */
|
||||
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="css/animation.css"><!--[if IE 7]><link rel="stylesheet" href="css/" + font.fontname + "-ie7.css"><![endif]-->
|
||||
<script>
|
||||
function toggleCodes(on) {
|
||||
var obj = document.getElementById('icons');
|
||||
|
||||
if (on) {
|
||||
obj.className += ' codesOn';
|
||||
} else {
|
||||
obj.className = obj.className.replace(' codesOn', '');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container header">
|
||||
<h1>fontello <small>font demo</small></h1>
|
||||
<label class="switch">
|
||||
<input type="checkbox" onclick="toggleCodes(this.checked)">show codes
|
||||
</label>
|
||||
</div>
|
||||
<div class="container" id="icons">
|
||||
<div class="row">
|
||||
<div class="span3" title="Code: 0xe800">
|
||||
<i class="demo-icon icon-picture"></i> <span class="i-name">icon-picture</span><span class="i-code">0xe800</span>
|
||||
</div>
|
||||
<div class="span3" title="Code: 0xe801">
|
||||
<i class="demo-icon icon-chart-bar"></i> <span class="i-name">icon-chart-bar</span><span class="i-code">0xe801</span>
|
||||
</div>
|
||||
<div class="span3" title="Code: 0xe802">
|
||||
<i class="demo-icon icon-cog-alt"></i> <span class="i-name">icon-cog-alt</span><span class="i-code">0xe802</span>
|
||||
</div>
|
||||
<div class="span3" title="Code: 0xe803">
|
||||
<i class="demo-icon icon-cancel"></i> <span class="i-name">icon-cancel</span><span class="i-code">0xe803</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span3" title="Code: 0xe804">
|
||||
<i class="demo-icon icon-download"></i> <span class="i-name">icon-download</span><span class="i-code">0xe804</span>
|
||||
</div>
|
||||
<div class="span3" title="Code: 0xe831">
|
||||
<i class="demo-icon icon-spin2 animate-spin"></i> <span class="i-name">icon-spin2</span><span class="i-code">0xe831</span>
|
||||
</div>
|
||||
<div class="span3" title="Code: 0xf0e6">
|
||||
<i class="demo-icon icon-chat-empty"></i> <span class="i-name">icon-chat-empty</span><span class="i-code">0xf0e6</span>
|
||||
</div>
|
||||
<div class="span3" title="Code: 0xf0fe">
|
||||
<i class="demo-icon icon-plus-squared"></i> <span class="i-name">icon-plus-squared</span><span class="i-code">0xf0fe</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span3" title="Code: 0xf146">
|
||||
<i class="demo-icon icon-minus-squared"></i> <span class="i-name">icon-minus-squared</span><span class="i-code">0xf146</span>
|
||||
</div>
|
||||
<div class="span3" title="Code: 0xf50d">
|
||||
<i class="demo-icon icon-search"></i> <span class="i-name">icon-search</span><span class="i-code">0xf50d</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="container footer">Generated by <a href="https://fontello.com">fontello.com</a></div>
|
||||
</body>
|
||||
</html>
|
||||
Binary file not shown.
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>Copyright (C) 2022 by original authors @ fontello.com</metadata>
|
||||
<defs>
|
||||
<font id="fontello" horiz-adv-x="1000" >
|
||||
<font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
|
||||
<missing-glyph horiz-adv-x="1000" />
|
||||
<glyph glyph-name="picture" unicode="" d="M357 529q0-45-31-76t-76-32-76 32-31 76 31 76 76 31 76-31 31-76z m572-215v-250h-786v107l178 179 90-89 285 285z m53 393h-893q-7 0-12-5t-6-13v-678q0-7 6-13t12-5h893q7 0 13 5t5 13v678q0 8-5 13t-13 5z m89-18v-678q0-37-26-63t-63-27h-893q-36 0-63 27t-26 63v678q0 37 26 63t63 27h893q37 0 63-27t26-63z" horiz-adv-x="1071.4" />
|
||||
|
||||
<glyph glyph-name="chart-bar" unicode="" d="M357 350v-286h-143v286h143z m214 286v-572h-142v572h142z m572-643v-72h-1143v858h71v-786h1072z m-357 500v-429h-143v429h143z m214 214v-643h-143v643h143z" horiz-adv-x="1142.9" />
|
||||
|
||||
<glyph glyph-name="cog-alt" unicode="" d="M500 350q0 59-42 101t-101 42-101-42-42-101 42-101 101-42 101 42 42 101z m429-286q0 29-22 51t-50 21-50-21-21-51q0-29 21-50t50-21 51 21 21 50z m0 572q0 29-22 50t-50 21-50-21-21-50q0-30 21-51t50-21 51 21 21 51z m-215-235v-103q0-6-4-11t-8-6l-87-14q-6-19-18-42 19-27 50-64 4-6 4-11 0-7-4-11-12-17-46-50t-43-33q-7 0-12 4l-64 50q-21-11-43-17-6-60-13-87-4-13-17-13h-104q-6 0-11 4t-5 10l-13 85q-19 6-42 18l-66-50q-4-4-11-4-6 0-12 4-80 75-80 90 0 5 4 10 5 8 23 30t26 34q-13 24-20 46l-85 13q-5 1-9 5t-4 11v104q0 5 4 10t9 6l86 14q7 19 18 42-19 27-50 64-4 6-4 11 0 7 4 12 12 16 46 49t44 33q6 0 12-4l64-50q19 10 43 18 6 60 13 86 3 13 16 13h104q6 0 11-4t6-10l13-85q19-6 42-17l65 49q5 4 12 4 6 0 11-4 81-75 81-90 0-4-4-10-7-9-24-30t-25-34q13-27 19-46l85-12q6-2 9-6t4-11z m357-298v-78q0-9-83-17-6-15-16-29 28-63 28-77 0-2-2-4-68-40-69-40-5 0-26 27t-29 37q-11-1-17-1t-17 1q-7-11-29-37t-25-27q-1 0-69 40-3 2-3 4 0 14 29 77-10 14-17 29-83 8-83 17v78q0 9 83 18 7 16 17 29-29 63-29 77 0 2 3 4 2 1 19 11t33 19 17 9q4 0 25-26t29-38q12 1 17 1t17-1q28 40 51 63l4 1q2 0 69-39 2-2 2-4 0-14-28-77 9-13 16-29 83-9 83-18z m0 572v-78q0-9-83-18-6-15-16-29 28-63 28-77 0-2-2-4-68-39-69-39-5 0-26 26t-29 38q-11-1-17-1t-17 1q-7-12-29-38t-25-26q-1 0-69 39-3 2-3 4 0 14 29 77-10 14-17 29-83 9-83 18v78q0 9 83 17 7 16 17 29-29 63-29 77 0 2 3 4 2 1 19 11t33 19 17 9q4 0 25-26t29-37q12 1 17 1t17-1q28 39 51 62l4 1q2 0 69-39 2-2 2-4 0-14-28-77 9-13 16-29 83-8 83-17z" horiz-adv-x="1071.4" />
|
||||
|
||||
<glyph glyph-name="cancel" unicode="" d="M724 112q0-22-15-38l-76-76q-16-15-38-15t-38 15l-164 165-164-165q-16-15-38-15t-38 15l-76 76q-16 16-16 38t16 38l164 164-164 164q-16 16-16 38t16 38l76 76q16 16 38 16t38-16l164-164 164 164q16 16 38 16t38-16l76-76q15-15 15-38t-15-38l-164-164 164-164q15-15 15-38z" horiz-adv-x="785.7" />
|
||||
|
||||
<glyph glyph-name="download" unicode="" d="M714 100q0 15-10 25t-25 11-25-11-11-25 11-25 25-11 25 11 10 25z m143 0q0 15-10 25t-26 11-25-11-10-25 10-25 25-11 26 11 10 25z m72 125v-179q0-22-16-37t-38-16h-821q-23 0-38 16t-16 37v179q0 22 16 38t38 16h259l75-76q33-32 76-32t76 32l76 76h259q22 0 38-16t16-38z m-182 318q10-23-8-39l-250-250q-10-11-25-11t-25 11l-250 250q-17 16-8 39 10 21 33 21h143v250q0 15 11 25t25 11h143q14 0 25-11t10-25v-250h143q24 0 33-21z" horiz-adv-x="928.6" />
|
||||
|
||||
<glyph glyph-name="spin2" unicode="" d="M46 144l0 0c0 0-1 0-1 0-8 18-15 37-21 55-6 19-11 38-15 58-19 99-8 203 35 298 3 6 10 8 15 5 1 0 2 0 2-1l0 0 80-59c5-3 6-9 4-14-5-12-9-25-12-37-4-13-7-26-9-40-11-67-3-137 23-201 2-5 0-10-4-13l0 0-80-56c-5-4-12-2-16 3-1 0-1 1-1 2l0 0z m120 574l0 0c0 1 0 1 0 1 15 13 30 25 46 37 16 11 33 22 51 31 89 50 192 72 297 60 6-1 10-6 10-13 0-1-1-1-1-2l0 0-31-94c-2-5-8-8-13-7-13 0-27 0-40 0-14-1-27-2-40-4-68-11-133-40-186-84-4-3-10-3-14 0l0 0-79 58c-5 3-6 11-2 16 0 0 1 1 2 1l0 0z m588 65l0 0c0 0 1 0 1 0 17-10 34-21 50-32 16-12 31-25 46-38 74-69 127-160 148-262 2-6-2-12-9-13-1 0-1 0-2 0l0 0-100 1c-5 0-10 4-11 9-3 13-8 26-12 38-5 12-10 25-17 36-31 61-78 113-137 150-5 3-6 8-5 13l0 0 31 92c2 6 9 9 15 7 1 0 2-1 2-1l0 0z m244-535l0 0c0 0 0 0 0 0-4-20-9-39-15-57-7-19-14-37-22-55-44-92-114-170-205-221-6-3-13-1-16 4 0 1-1 2-1 2l0 0-30 94c-2 6 1 12 6 14 11 7 22 15 32 23 11 9 21 18 30 27 49 48 84 109 101 176 2 5 6 8 11 8l0 0 98-1c6 0 11-5 11-11 0-1 0-2 0-3l0 0z m-438-395l0 0c0 0 0 0 0 0-20-2-40-3-60-3-20 0-40 1-59 4-102 12-198 54-276 125-5 4-5 11 0 16 0 0 1 1 1 1l0 0 81 58c5 3 12 2 16-2 10-8 20-16 32-23 11-7 22-14 34-20 62-31 131-45 200-41 6 0 10-3 12-8l0 0 29-92c2-6-1-12-7-14-1-1-2-1-3-1l0 0z" horiz-adv-x="1000" />
|
||||
|
||||
<glyph glyph-name="chat-empty" unicode="" d="M393 636q-85 0-160-29t-118-79-44-107q0-45 30-88t83-73l54-32-19-46q19 11 34 21l25 18 30-6q43-8 85-8 85 0 160 29t118 79 43 106-43 107-118 79-160 29z m0 71q106 0 197-38t143-104 53-144-53-143-143-104-197-38q-48 0-98 9-70-49-155-72-21-5-48-9h-2q-6 0-12 5t-6 12q-1 1-1 3t1 4 1 3l1 3t2 3 2 3 3 3 2 2q3 3 13 14t15 16 12 17 14 21 11 25q-69 40-108 98t-40 125q0 78 53 144t143 104 197 38z m459-652q5-14 11-25t14-21 13-16 14-17 13-14q0 0 2-2t3-3 2-3 2-3l1-3t1-3 1-4-1-3q-2-8-7-13t-12-4q-28 4-48 9-86 23-156 72-50-9-98-9-151 0-263 74 32-3 49-3 90 0 172 25t148 72q69 52 107 119t37 141q0 43-13 85 72-39 114-99t42-128q0-67-40-126t-108-98z" horiz-adv-x="1000" />
|
||||
|
||||
<glyph glyph-name="plus-squared" unicode="" d="M714 314v72q0 14-10 25t-25 10h-179v179q0 15-11 25t-25 11h-71q-15 0-25-11t-11-25v-179h-178q-15 0-25-10t-11-25v-72q0-14 11-25t25-10h178v-179q0-14 11-25t25-11h71q15 0 25 11t11 25v179h179q14 0 25 10t10 25z m143 304v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
|
||||
|
||||
<glyph glyph-name="minus-squared" unicode="" d="M714 314v72q0 14-10 25t-25 10h-500q-15 0-25-10t-11-25v-72q0-14 11-25t25-10h500q14 0 25 10t10 25z m143 304v-536q0-66-47-113t-114-48h-535q-67 0-114 48t-47 113v536q0 66 47 113t114 48h535q67 0 114-48t47-113z" horiz-adv-x="857.1" />
|
||||
|
||||
<glyph glyph-name="search" unicode="" d="M11 375q-23 87 0 173t87 150q48 49 110 74t128 25q65 0 127-25t110-74q52-52 77-119t21-137-36-132q28-8 49-29l174-173q35-35 35-85t-35-85q-35-35-85-35t-85 35l-173 174q-22 20-30 49-70-35-149-35-66 0-128 25t-110 73q-64 64-87 151z m101 86q0-93 65-158 66-65 159-65 92 0 157 65t66 158-66 158q-66 66-157 66-92 0-159-66-65-65-65-158z" horiz-adv-x="892.6" />
|
||||
</font>
|
||||
</defs>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.3 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 528 B |
Binary file not shown.
|
After Width: | Height: | Size: 3.9 KiB |
@@ -0,0 +1,56 @@
|
||||
@import url('fontello/css/animation.css');
|
||||
@import url('fontello/css/fontello.css');
|
||||
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
src: url('fonts/Lato-Bold.ttf');
|
||||
src: url('fonts/Lato-Italic.ttf');
|
||||
src: url('fonts/Lato-Light.ttf');
|
||||
src: url('fonts/Lato-Regular.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Monsterrat';
|
||||
src: url('fonts/Montserrat-VariableFont_wght.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
src: url('fonts/Roboto-Bold.ttf');
|
||||
src: url('fonts/Roboto-Light.ttf');
|
||||
src: url('fonts/Roboto-Medium.ttf');
|
||||
src: url('fonts/Roboto-Thin.ttf');
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Mono';
|
||||
src: url('fonts/RobotoMono-VariableFont_wght.ttf');
|
||||
}
|
||||
|
||||
:root {
|
||||
--color-primary: #006aff;
|
||||
--color-secondary: #16bac5;
|
||||
--color-ternary: #2b2d42;
|
||||
--color-light: #efe9f4;
|
||||
--color-dark: #171d1c;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Lato';
|
||||
}
|
||||
|
||||
.container {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 4.2rem;
|
||||
background-blend-mode: luminosity;
|
||||
background: url('./img/terrazzo.webp'),
|
||||
linear-gradient(45deg, #a334fa, #0695ff);
|
||||
padding: 0.5em;
|
||||
}
|
||||
-509
@@ -1,509 +0,0 @@
|
||||
import sqlite from 'sqlite3'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
import utf8 from 'utf8'
|
||||
|
||||
// TODO: some object can have better typing
|
||||
// TODO: no modules, need to separate into files
|
||||
// TODO: there for sure is an exception without a catch statement
|
||||
// FIXME: also some rejections are purposley left uncaught
|
||||
// the intention is to exit and for a user to intervene
|
||||
// but I don't think that behaves consistently
|
||||
// TODO: add electron
|
||||
// TODO: add cra-typescript
|
||||
|
||||
import { messagesPart } from 'takeoutSchema'
|
||||
|
||||
function prepareDirs() {
|
||||
const dirs = [
|
||||
'data',
|
||||
'data/photos',
|
||||
'data/videos',
|
||||
'data/audio',
|
||||
'data/gifs',
|
||||
'data/files',
|
||||
]
|
||||
for (let dir of dirs) {
|
||||
if (!fs.existsSync(dir)) {
|
||||
console.info(` ✕ ${dir} not found, creating`)
|
||||
fs.mkdirSync(dir)
|
||||
}
|
||||
}
|
||||
|
||||
console.info(` ✓ dirs ok`)
|
||||
|
||||
if (!fs.existsSync(master)) {
|
||||
console.info(` ✕ supplied master dir doesn't exist`)
|
||||
process.exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
function prepareDb() {
|
||||
return new Promise((resolve, reject) => {
|
||||
const sqlInit = fs.readFileSync('sql/init.sql').toString()
|
||||
|
||||
db.exec(sqlInit, err => {
|
||||
if (err) throw err
|
||||
else {
|
||||
resolve(true)
|
||||
console.info(` ✓ db ok `)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
async function getInboxes(master: string) {
|
||||
const scanDirs = [
|
||||
'archived_threads',
|
||||
'filtered_threads',
|
||||
'inbox',
|
||||
'message_requests',
|
||||
],
|
||||
availableDirs = fs.readdirSync(master).filter(d => scanDirs.includes(d)),
|
||||
inboxes: [string, string][] = []
|
||||
|
||||
for (let dir of availableDirs) {
|
||||
let subs = fs.readdirSync(path.join(master, dir))
|
||||
for (let inbox of subs) {
|
||||
inboxes.push([path.join(dir, inbox), dir])
|
||||
}
|
||||
}
|
||||
|
||||
console.info(` ⇒ found ${inboxes.length} inboxes`)
|
||||
|
||||
return inboxes
|
||||
}
|
||||
|
||||
function parseInbox(
|
||||
dir: string,
|
||||
cat: string
|
||||
): Promise<{
|
||||
[inboxId: string]: { parts: string[]; dir: string; knownSenders: string[] }
|
||||
}> {
|
||||
// FIXME: inconsistent string escaping
|
||||
// didn't check if all variables/inserts have escaped string
|
||||
return new Promise((resolve, reject) => {
|
||||
const inboxIdPattern = /_[^\/]*?$/,
|
||||
groupPhotoPattern = /messages\/.+\/(\S+\..+)$/,
|
||||
messagePartRegex = /message_\d+\.json/
|
||||
|
||||
let inboxId = inboxIdPattern.exec(dir)![0].slice(-10)
|
||||
|
||||
console.info(` ⇒ parsing inbox '${inboxId}'`)
|
||||
|
||||
const messageParts = fs
|
||||
.readdirSync(path.join(master, dir))
|
||||
.filter(f => f.match(messagePartRegex))
|
||||
|
||||
fs.readFile(path.join(master, dir, messageParts[0]), (err, buffer) => {
|
||||
let { title, thread_type, participants, image }: messagesPart =
|
||||
JSON.parse(buffer.toString())
|
||||
|
||||
title = utf8.decode(title)
|
||||
|
||||
let knownSenders = participants.map((p: { name: string }) => p.name)
|
||||
|
||||
var inbox = {
|
||||
[inboxId]: { parts: messageParts, dir, knownSenders },
|
||||
}
|
||||
|
||||
// console.info(
|
||||
// ` ⇒ '${inboxId}' (${partData.title}) is a '${partData.thread_type}' `
|
||||
// )
|
||||
|
||||
// // update inbox metadata
|
||||
// db.run(
|
||||
// `UPDATE inboxes SET title="${partData.title}", thread="${partData.thread_type}" WHERE id="${inboxId}"`
|
||||
// )
|
||||
|
||||
db.run(
|
||||
`INSERT or FAIL INTO inboxes VALUES ($inbox, $cat, $title, $thread)`,
|
||||
{
|
||||
$inbox: inboxId,
|
||||
$cat: cat,
|
||||
$title: title,
|
||||
$thread: thread_type,
|
||||
},
|
||||
(err: ErrorQuery) => {
|
||||
if (!err || err?.errno == 19) {
|
||||
console.info(
|
||||
` ✓ inbox '${inboxId}' ${
|
||||
err?.errno == 19 ? 'exists' : 'added'
|
||||
} "${title}" (${thread_type}) with ${
|
||||
knownSenders.length
|
||||
} participants`
|
||||
)
|
||||
|
||||
if (image) {
|
||||
db.run(
|
||||
`INSERT or FAIL INTO group_photos VALUES ($uri, $creation, $inbox)`,
|
||||
{
|
||||
$uri:
|
||||
groupPhotoPattern.exec(image.uri)?.[1] ??
|
||||
image.uri,
|
||||
$creation: image.creation_timestamp,
|
||||
$inbox: inboxId,
|
||||
},
|
||||
(err: ErrorQuery) => {
|
||||
if (!err || err?.errno == 19) {
|
||||
console.info(` ✓ saved '${inboxId}' group photo `)
|
||||
resolve(inbox)
|
||||
} else reject(err)
|
||||
}
|
||||
)
|
||||
} else resolve(inbox)
|
||||
} else reject(err)
|
||||
}
|
||||
)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
function parsePart(
|
||||
inboxId: string,
|
||||
knownSenders: string[],
|
||||
dir: string,
|
||||
partName: string
|
||||
): [
|
||||
number,
|
||||
Promise<{ [type: string]: { ok: number; dup: number; fail?: number } }>
|
||||
] {
|
||||
var results = {
|
||||
messages: { ok: 0, dup: 0 },
|
||||
reactions: { ok: 0, dup: 0 },
|
||||
shares: { ok: 0, dup: 0 },
|
||||
media: { ok: 0, dup: 0, fail: 0 },
|
||||
},
|
||||
pending: Promise<{}>[] = []
|
||||
|
||||
// new Promise((resolveFile) => {
|
||||
let buffer = fs.readFileSync(path.join(master, dir, partName))
|
||||
|
||||
let partData: messagesPart = JSON.parse(buffer.toString())
|
||||
|
||||
// console.info(` ✓ loaded ${inboxId}/${partName} `)
|
||||
|
||||
const scanMedia = ['photos', 'audio_files', 'files', 'gifs', 'videos'],
|
||||
mediaLables: { [key: string]: [string, string] } = {
|
||||
// key: [dir, table]
|
||||
photos: ['photos', 'photos'],
|
||||
videos: ['videos', 'videos'],
|
||||
audio_files: ['audio', 'audios'],
|
||||
files: ['files', 'files'],
|
||||
gifs: ['gifs', 'gifs'],
|
||||
}
|
||||
|
||||
let seenSenders: string[] = []
|
||||
|
||||
for (let message of partData.messages) {
|
||||
// fix encoding
|
||||
message.sender_name = utf8.decode(message.sender_name)
|
||||
message.content = message.content ? utf8.decode(message.content) : ''
|
||||
|
||||
// keep track of seen senders
|
||||
if (!seenSenders.includes(message.sender_name)) {
|
||||
seenSenders.push(message.sender_name)
|
||||
|
||||
parseParticipant(
|
||||
message.sender_name,
|
||||
inboxId,
|
||||
knownSenders.includes(message.sender_name)
|
||||
)
|
||||
}
|
||||
|
||||
// get media present in current message
|
||||
const availableMediaTypes = Object.keys(message).filter(k =>
|
||||
scanMedia.includes(k)
|
||||
)
|
||||
|
||||
// FIXME: wrong type label
|
||||
// labels, dirs, and tables need to be organised better
|
||||
|
||||
// override message category, based on included media
|
||||
message.type =
|
||||
availableMediaTypes.length > 0
|
||||
? availableMediaTypes.join('+')
|
||||
: message.type
|
||||
|
||||
// insert message to db
|
||||
pending.push(
|
||||
new Promise((resolveMessage, rejectMessage) => {
|
||||
db.run(
|
||||
`INSERT INTO messages VALUES ($sender, $timestamp, $inbox, $content, $type, $unsent)`,
|
||||
{
|
||||
$unsent: message.is_unsent,
|
||||
$type: message.type,
|
||||
$timestamp: message.timestamp_ms,
|
||||
$inbox: inboxId,
|
||||
$sender: message.sender_name,
|
||||
$content: message.content,
|
||||
},
|
||||
(err: ErrorQuery) => {
|
||||
if (!err || err?.errno == 19) {
|
||||
err?.errno == 19
|
||||
? results.messages.dup++
|
||||
: results.messages.ok++
|
||||
resolveMessage(results)
|
||||
} else rejectMessage(err)
|
||||
}
|
||||
)
|
||||
})
|
||||
)
|
||||
|
||||
// parse detected media
|
||||
for (let mediaType of availableMediaTypes)
|
||||
for (let { uri, creation_timestamp } of message[mediaType]!)
|
||||
pending.push(
|
||||
new Promise((resolveMedia, rejectMedia) => {
|
||||
const mediaFilenamePattern = /messages\/.+\/.+\/(\S+\..+)$/
|
||||
|
||||
// get filename only
|
||||
uri = mediaFilenamePattern.exec(uri)![1]
|
||||
|
||||
db.run(
|
||||
`INSERT INTO ${mediaLables[mediaType][1]} VALUES ($uri, $created, $inbox, $message_sender, $message_created)`,
|
||||
{
|
||||
$uri: uri,
|
||||
$created: creation_timestamp,
|
||||
$inbox: inboxId,
|
||||
$message_sender: message.sender_name,
|
||||
$message_created: message.timestamp_ms,
|
||||
},
|
||||
(dberr: ErrorQuery) => {
|
||||
if (!dberr || dberr?.errno == 19) {
|
||||
if (dberr?.errno == 19) {
|
||||
results.media.dup++
|
||||
logErrors(dberr, uri)
|
||||
resolveMedia(results)
|
||||
} else
|
||||
fs.rename(
|
||||
path.join(
|
||||
master,
|
||||
dir,
|
||||
mediaLables[mediaType][0],
|
||||
uri
|
||||
),
|
||||
path.join(
|
||||
'data',
|
||||
mediaLables[mediaType][0],
|
||||
uri
|
||||
),
|
||||
fserr => {
|
||||
if (fserr) {
|
||||
logErrors(fserr, uri)
|
||||
results.media.fail++
|
||||
} else {
|
||||
results.media.ok++
|
||||
}
|
||||
|
||||
resolveMedia(results)
|
||||
}
|
||||
)
|
||||
} else rejectMedia(dberr)
|
||||
}
|
||||
)
|
||||
})
|
||||
)
|
||||
|
||||
// parse reactions
|
||||
if ('reactions' in message)
|
||||
pending.push(
|
||||
new Promise((resolveReaction, rejectReaction) => {
|
||||
for (let { reaction, actor } of message.reactions!) {
|
||||
db.run(
|
||||
`INSERT INTO reactions VALUES ($sender, $timestamp, $inbox, $reaction, $actor)`,
|
||||
{
|
||||
$sender: message.sender_name,
|
||||
$timestamp: message.timestamp_ms,
|
||||
$inbox: inboxId,
|
||||
$reaction: reaction,
|
||||
$actor: actor,
|
||||
},
|
||||
(err: ErrorQuery) => {
|
||||
if (!err || err?.errno == 19) {
|
||||
err?.errno == 19
|
||||
? results.reactions.dup++
|
||||
: results.reactions.ok++
|
||||
resolveReaction(results)
|
||||
} else rejectReaction(err)
|
||||
}
|
||||
)
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
if ('share' in message)
|
||||
pending.push(
|
||||
new Promise((resolveShare, rejectShare) => {
|
||||
db.run(
|
||||
`INSERT INTO shares VALUES ($sender, $timestamp, $inbox, $link)`,
|
||||
{
|
||||
$sender: message.sender_name,
|
||||
$timestamp: message.timestamp_ms,
|
||||
$inbox: inboxId,
|
||||
$link: message.share?.link,
|
||||
},
|
||||
(err: ErrorQuery) => {
|
||||
if (!err || err?.errno == 19) {
|
||||
err?.errno == 19
|
||||
? results.shares.dup++
|
||||
: results.shares.ok++
|
||||
resolveShare(results)
|
||||
} else rejectShare(err)
|
||||
}
|
||||
)
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
// console.log(pending)
|
||||
|
||||
// setTimeout(() => {
|
||||
// console.log(pending.map(p => p))
|
||||
// }, 5e3)
|
||||
|
||||
// Promise.all(pending).then(() => console.log('lmao'))
|
||||
|
||||
return [pending.length, Promise.all(pending).then(() => results)]
|
||||
}
|
||||
|
||||
function parseParticipant(
|
||||
name: string,
|
||||
inboxId: string,
|
||||
participates: boolean
|
||||
) {
|
||||
return new Promise((resolve, reject) => {
|
||||
db.run(
|
||||
`INSERT INTO participants VALUES ($inbox, $uname, $participates) ON CONFLICT(inbox, uname) DO UPDATE SET participates=$participates`,
|
||||
{
|
||||
$inbox: inboxId,
|
||||
$uname: name,
|
||||
$participates: participates,
|
||||
},
|
||||
err => {
|
||||
if (err) reject(err)
|
||||
else resolve(true)
|
||||
}
|
||||
)
|
||||
})
|
||||
|
||||
// db.all(
|
||||
// `SELECT uname FROM participants WHERE uname="${name}" and inbox="${inboxId}"`,
|
||||
// (err, names) => {
|
||||
// if (names.length < 1)
|
||||
// db.run(
|
||||
// `INSERT INTO participants VALUES ("${inboxId}", "${name}", ${participates})`
|
||||
// )
|
||||
// else
|
||||
// db.run(
|
||||
// `UPDATE participants SET participates=${participates} WHERE uname="${name}" AND inbox="${inboxId}"`
|
||||
// )
|
||||
// }
|
||||
// )
|
||||
}
|
||||
|
||||
function logErrors({ errno, code }: any, subject: string) {
|
||||
errors.write(`${errno} ${code} ${subject} \n`)
|
||||
}
|
||||
|
||||
// TODO: initialization is a mess, all vars are in a random order
|
||||
// works but ugly
|
||||
|
||||
const db = new sqlite.Database('data.db')
|
||||
|
||||
const master = './messages'
|
||||
|
||||
type ErrorQuery = (Error & { errno: number }) | null // TODO: tf is this doing here
|
||||
|
||||
const start = process.hrtime.bigint(),
|
||||
errors = fs.createWriteStream('errors.log', { flags: 'w' })
|
||||
|
||||
prepareDirs()
|
||||
|
||||
await prepareDb()
|
||||
|
||||
getInboxes(master)
|
||||
.then(inboxes =>
|
||||
Promise.all(inboxes.map(([dir, cat]) => parseInbox(dir, cat)))
|
||||
)
|
||||
.then(inboxParts =>
|
||||
inboxParts.reduce((namedParts, part) => {
|
||||
return { ...namedParts, ...part }
|
||||
}, {})
|
||||
)
|
||||
.then(inboxParts => {
|
||||
// FIXME: those types are a total mess
|
||||
var totalResults: { [key: string]: { [key: string]: {} } } = {
|
||||
messages: { ok: 0, dup: 0 },
|
||||
reactions: { ok: 0, dup: 0 },
|
||||
shares: { ok: 0, dup: 0 },
|
||||
media: { ok: 0, dup: 0, fail: 0 },
|
||||
},
|
||||
totalPending: Promise<any>[] = []
|
||||
|
||||
for (let inboxId in inboxParts) {
|
||||
const { dir, parts, knownSenders } = inboxParts[inboxId]
|
||||
parts
|
||||
.map(part => parsePart(inboxId, knownSenders, dir, part))
|
||||
.map(([nPending, pending], i) => {
|
||||
console.info(
|
||||
` ⇒ in '${inboxId}'/${i + 1} ${nPending} pending actions`
|
||||
)
|
||||
totalPending.push(pending)
|
||||
return pending
|
||||
})
|
||||
.map((pending, i) =>
|
||||
pending.then(() => {
|
||||
console.info(` ✓ resolved '${inboxId}'/${i + 1}`)
|
||||
})
|
||||
)
|
||||
}
|
||||
|
||||
Promise.all(totalPending).then(allResults => {
|
||||
allResults.forEach(results => {
|
||||
for (let type in results) {
|
||||
for (let status in results[type])
|
||||
totalResults[type][status] += results[type][status]
|
||||
}
|
||||
})
|
||||
// TODO: this can be done in a prettier way, right...?
|
||||
console.info(` ⇒ all parts resolved`)
|
||||
console.info(` ✓ ok ⇊ dup ✕ fail `)
|
||||
console.info(
|
||||
` media ${totalResults.media.ok
|
||||
.toString()
|
||||
.padEnd(6, ' ')} ${totalResults.media.dup
|
||||
.toString()
|
||||
.padEnd(6, ' ')} ${totalResults.media
|
||||
.fail!.toString()
|
||||
.padEnd(6, ' ')}`
|
||||
)
|
||||
console.info(
|
||||
` messages ${totalResults.messages.ok
|
||||
.toString()
|
||||
.padEnd(6, ' ')} ${totalResults.messages.dup
|
||||
.toString()
|
||||
.padEnd(6, ' ')}`
|
||||
)
|
||||
console.info(
|
||||
` shares ${totalResults.shares.ok
|
||||
.toString()
|
||||
.padEnd(6, ' ')} ${totalResults.shares.dup
|
||||
.toString()
|
||||
.padEnd(6, ' ')}`
|
||||
)
|
||||
console.info(
|
||||
` reactions ${totalResults.reactions.ok
|
||||
.toString()
|
||||
.padEnd(6, ' ')} ${totalResults.reactions.dup
|
||||
.toString()
|
||||
.padEnd(6, ' ')}`
|
||||
)
|
||||
|
||||
console.info(
|
||||
`\n ⏲ Total time: ${(
|
||||
Number(process.hrtime.bigint() - start) / 1e9
|
||||
).toFixed(2)} seconds`
|
||||
)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,4 @@
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import Main from './Main'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(<Main />)
|
||||
@@ -1,129 +0,0 @@
|
||||
export type timestampSeconds = number;
|
||||
export type timestampMs = number;
|
||||
|
||||
export type unescapedString = string;
|
||||
|
||||
export type messagesPart = {
|
||||
title: unescapedString;
|
||||
thread_path: string;
|
||||
thread_type: string;
|
||||
participants: { name: unescapedString }[];
|
||||
magic_words: [];
|
||||
messages: (message & messageWithMedia)[];
|
||||
image?: {
|
||||
uri: string;
|
||||
creation_timestamp: timestampSeconds;
|
||||
};
|
||||
is_still_participant: boolean;
|
||||
joinable_mode: {
|
||||
mode: number;
|
||||
link: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type message = {
|
||||
sender_name: unescapedString;
|
||||
timestamp_ms: timestampMs;
|
||||
content: unescapedString;
|
||||
type: string; // 'Generic' | 'Call' | 'Share' | 'Subscribe' | 'Unsubscribe'
|
||||
is_unsent: boolean;
|
||||
is_taken_down: boolean;
|
||||
bumped_message_metadata: {
|
||||
bumped_message: unescapedString;
|
||||
is_bumped: boolean;
|
||||
};
|
||||
|
||||
call_duration?: number;
|
||||
missed?: boolean;
|
||||
|
||||
ip?: string;
|
||||
|
||||
reactions?: messageReaction[];
|
||||
|
||||
users?: { name: unescapedString }[];
|
||||
|
||||
share?: {
|
||||
link?: string;
|
||||
share_text?: unescapedString;
|
||||
};
|
||||
|
||||
sticker?: {
|
||||
uri: string;
|
||||
};
|
||||
};
|
||||
|
||||
export type messageWithMedia = {
|
||||
photos?: messageMedia[];
|
||||
audio_files?: messageMedia[];
|
||||
files?: messageMedia[];
|
||||
gifs?: (messageMedia & { creation_timestamp: never })[];
|
||||
videos?: (messageMedia & { thumbnail: { uri: string } })[];
|
||||
[mediaType: string]: messageMedia[] | undefined;
|
||||
};
|
||||
|
||||
export type messageMedia = {
|
||||
uri: string;
|
||||
creation_timestamp: number;
|
||||
};
|
||||
|
||||
export type messageReaction = {
|
||||
reaction: unescapedString;
|
||||
actor: unescapedString;
|
||||
};
|
||||
|
||||
// all keys present in facebook takeouts
|
||||
|
||||
// "title":
|
||||
// "thread_path":
|
||||
// "thread_type":
|
||||
// "participants":
|
||||
// "name":
|
||||
// "magic_words":
|
||||
// "messages":
|
||||
// "image":
|
||||
// "is_still_participant":
|
||||
// "joinable_mode":
|
||||
|
||||
// "link":
|
||||
// "mode":
|
||||
// "uri":
|
||||
// "creation_timestamp":
|
||||
|
||||
// "sender_name":
|
||||
// "timestamp_ms":
|
||||
// "content":
|
||||
// "type":
|
||||
// "is_unsent":
|
||||
// "is_taken_down":
|
||||
// "bumped_message_metadata":
|
||||
// "bumped_message":
|
||||
// "is_bumped":
|
||||
|
||||
// "photos":
|
||||
// "videos":
|
||||
// "audio_files":
|
||||
// "gifs":
|
||||
// "files":
|
||||
// "uri":
|
||||
// "creation_timestamp":
|
||||
// "thumbnail":
|
||||
// "uri":
|
||||
|
||||
// "call_duration":
|
||||
// "missed":
|
||||
|
||||
// "ip":
|
||||
|
||||
// "reactions":
|
||||
// "reaction":
|
||||
// "actor":
|
||||
|
||||
// "users":
|
||||
// "name":
|
||||
|
||||
// "share":
|
||||
// "link":
|
||||
// "share_text":
|
||||
|
||||
// "sticker":
|
||||
// "uri":
|
||||
@@ -0,0 +1,3 @@
|
||||
export function scan(paths: string[], options: any, contact: updateProgress) {
|
||||
console.log(paths)
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
type updateProgress = (
|
||||
level: string,
|
||||
message: string,
|
||||
status: number,
|
||||
err?: Error
|
||||
) => void
|
||||
+9
-26
@@ -1,31 +1,14 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "src",
|
||||
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"module": "esnext",
|
||||
"target": "esnext",
|
||||
|
||||
"target": "es5",
|
||||
"module": "commonjs",
|
||||
"lib": ["dom", "es2015", "es2016", "es2017"],
|
||||
"allowJs": true,
|
||||
"jsx": "react-jsx",
|
||||
"sourceMap": true,
|
||||
"outDir": "build",
|
||||
|
||||
"paths": {
|
||||
"*": ["../node_modules/*", "*"]
|
||||
},
|
||||
|
||||
"noImplicitReturns": true,
|
||||
"noImplicitAny": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
// "noUnusedLocals": true,
|
||||
|
||||
"outDir": "./dist",
|
||||
"strict": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"isolatedModules": true
|
||||
},
|
||||
"compileOnSave": true,
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules/"]
|
||||
"esModuleInterop": true,
|
||||
"noImplicitAny": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
||||
|
||||
// webpack.config.js
|
||||
module.exports = [
|
||||
{
|
||||
mode: 'development',
|
||||
entry: './electron/main.ts',
|
||||
target: 'electron-main',
|
||||
resolve: {
|
||||
extensions: ['.ts', '.js'],
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
// include: /src/,
|
||||
use: [{ loader: 'ts-loader' }],
|
||||
},
|
||||
{
|
||||
test: /\.node$/,
|
||||
loader: 'node-loader',
|
||||
},
|
||||
],
|
||||
},
|
||||
output: {
|
||||
path: __dirname + '/build',
|
||||
filename: 'electron.js',
|
||||
},
|
||||
},
|
||||
{
|
||||
entry: './electron/preload.ts',
|
||||
target: 'electron-preload',
|
||||
resolve: {
|
||||
extensions: ['.ts', '.js'],
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
// include: /src/,
|
||||
use: [{ loader: 'ts-loader' }],
|
||||
},
|
||||
],
|
||||
},
|
||||
output: {
|
||||
path: __dirname + '/build',
|
||||
filename: 'preload.js',
|
||||
},
|
||||
},
|
||||
{
|
||||
mode: 'development',
|
||||
entry: __dirname + '/src/index.tsx',
|
||||
target: 'electron-renderer',
|
||||
devtool: 'source-map',
|
||||
resolve: {
|
||||
extensions: ['.ts', '.tsx', '.js'],
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.node$/,
|
||||
use: 'node-loader',
|
||||
},
|
||||
{
|
||||
test: /\.css$/i,
|
||||
use: ['style-loader', 'css-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.s[ac]ss$/i,
|
||||
use: ['style-loader', 'css-loader', 'sass-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.(js|ts|tsx)$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
},
|
||||
},
|
||||
{
|
||||
test: /\.(png|jpe?g|gif)$/i,
|
||||
loader: 'file-loader',
|
||||
options: {
|
||||
name: '[path][name].[ext]',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
output: {
|
||||
path: __dirname + '/build',
|
||||
filename: 'react.js',
|
||||
},
|
||||
plugins: [
|
||||
new HtmlWebpackPlugin({
|
||||
template: './public/index.html',
|
||||
}),
|
||||
],
|
||||
},
|
||||
]
|
||||
Reference in new issue
Block a user