forked from latestchatty/chatty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: New and (eventually) improved React version.
- Loading branch information
Showing
114 changed files
with
3,334 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "react-app" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
node_modules | ||
typings/ | ||
build | ||
npm-debug.log | ||
coverage | ||
aws-credentials.json | ||
.awspublish* | ||
stats.json | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Chatty | ||
--- | ||
|
||
A single-page-application alternative client for the shacknews chatty (http://www.shacknews.com/chatty). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules | ||
typings/ | ||
build | ||
npm-debug.log | ||
coverage | ||
aws-credentials.json | ||
.awspublish* | ||
stats.json |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2017 Andy Christianson | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "chatty", | ||
"version": "1.0.0", | ||
"description": "A web based alternate client for the shacknews chatty (http://www.shacknews.com/chatty).", | ||
"author": "Andy Christianson", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/NiXXeD/chatty" | ||
}, | ||
"scripts": { | ||
"start": "webpack-dev-server --progress --colors --display-error-details --inline", | ||
"build": "webpack", | ||
"stats": "webpack --profile --json > stats.json", | ||
"server": "http-server build --cors -p 3000" | ||
}, | ||
"engines": { | ||
"node": ">= 4.2.1 <= 5", | ||
"npm": ">= 2 <= 3" | ||
}, | ||
"dependencies": { | ||
"@angular/common": "2.0.0-rc.5", | ||
"@angular/compiler": "2.0.0-rc.5", | ||
"@angular/core": "2.0.0-rc.5", | ||
"@angular/forms": "0.3.0", | ||
"@angular/http": "2.0.0-rc.5", | ||
"@angular/platform-browser": "2.0.0-rc.5", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.5", | ||
"@angular/router": "3.0.0-rc.1", | ||
"core-js": "2.4.1", | ||
"intl": "^1.2.4", | ||
"lodash": "4.14.1", | ||
"reflect-metadata": "0.1.8", | ||
"rxjs": "5.0.0-beta.6", | ||
"systemjs": "0.19.36", | ||
"zone.js": "0.6.12" | ||
}, | ||
"devDependencies": { | ||
"clean-webpack-plugin": "0.1.10", | ||
"copy-webpack-plugin": "3.0.1", | ||
"css-loader": "0.23.1", | ||
"extract-text-webpack-plugin": "1.0.1", | ||
"html-webpack-plugin": "2.22.0", | ||
"http-server": "0.9.0", | ||
"postcss-loader": "0.10.0", | ||
"precss": "1.4.0", | ||
"raw-loader": "0.5.1", | ||
"style-loader": "0.13.1", | ||
"stylelint": "7.1.0", | ||
"stylelint-config-standard": "12.0.0", | ||
"ts-loader": "0.8.2", | ||
"typescript": "1.8.10", | ||
"webpack": "1.13.1", | ||
"webpack-dev-server": "1.14.1", | ||
"webpack-merge": "0.14.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/app/services/ShackMessageService.ts → ...e/src/app/services/ShackMessageService.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,30 @@ | ||
{ | ||
"name": "chatty", | ||
"version": "1.0.0", | ||
"description": "A web based alternate client for the shacknews chatty (http://www.shacknews.com/chatty).", | ||
"author": "Andy Christianson", | ||
"homepage": "https://NiXXeD.github.io/chatty", | ||
"version": "0.1.0", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/NiXXeD/chatty" | ||
}, | ||
"scripts": { | ||
"start": "webpack-dev-server --progress --colors --display-error-details --inline", | ||
"build": "webpack", | ||
"stats": "webpack --profile --json > stats.json", | ||
"server": "http-server build --cors -p 3000" | ||
}, | ||
"engines": { | ||
"node": ">= 4.2.1 <= 5", | ||
"npm": ">= 2 <= 3" | ||
}, | ||
"dependencies": { | ||
"@angular/common": "2.0.0-rc.5", | ||
"@angular/compiler": "2.0.0-rc.5", | ||
"@angular/core": "2.0.0-rc.5", | ||
"@angular/forms": "0.3.0", | ||
"@angular/http": "2.0.0-rc.5", | ||
"@angular/platform-browser": "2.0.0-rc.5", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.5", | ||
"@angular/router": "3.0.0-rc.1", | ||
"core-js": "2.4.1", | ||
"intl": "^1.2.4", | ||
"lodash": "4.14.1", | ||
"reflect-metadata": "0.1.8", | ||
"rxjs": "5.0.0-beta.6", | ||
"systemjs": "0.19.36", | ||
"zone.js": "0.6.12" | ||
"@material-ui/core": "1.4.3", | ||
"@material-ui/icons": "2.0.1", | ||
"classnames": "2.2.6", | ||
"date-fns": "1.29.0", | ||
"gh-pages": "1.2.0", | ||
"history": "4.7.2", | ||
"lodash": "4.17.10", | ||
"react": "16.4.2", | ||
"react-dom": "16.4.2", | ||
"react-router": "4.3.1", | ||
"react-router-dom": "4.3.1" | ||
}, | ||
"devDependencies": { | ||
"clean-webpack-plugin": "0.1.10", | ||
"copy-webpack-plugin": "3.0.1", | ||
"css-loader": "0.23.1", | ||
"extract-text-webpack-plugin": "1.0.1", | ||
"html-webpack-plugin": "2.22.0", | ||
"http-server": "0.9.0", | ||
"postcss-loader": "0.10.0", | ||
"precss": "1.4.0", | ||
"raw-loader": "0.5.1", | ||
"style-loader": "0.13.1", | ||
"stylelint": "7.1.0", | ||
"stylelint-config-standard": "12.0.0", | ||
"ts-loader": "0.8.2", | ||
"typescript": "1.8.10", | ||
"webpack": "1.13.1", | ||
"webpack-dev-server": "1.14.1", | ||
"webpack-merge": "0.14.1" | ||
"react-scripts": "1.1.4" | ||
}, | ||
"scripts": { | ||
"predeploy": "npm run build", | ||
"deploy": "gh-pages -d build", | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test --env=jsdom", | ||
"eject": "react-scripts eject" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="theme-color" content="#000000"> | ||
<!-- | ||
manifest.json provides metadata used when your web app is added to the | ||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"> | ||
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>NiXXeD Chatty</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"short_name": "React App", | ||
"name": "Create React App Sample", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "192x192", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react' | ||
import {Route, Switch} from 'react-router-dom' | ||
import Nav from '../nav/Nav' | ||
import Chatty from '../chatty/Chatty' | ||
|
||
class App extends React.Component { | ||
render() { | ||
return ( | ||
<React.Fragment> | ||
<Nav/> | ||
<Switch> | ||
<Route path="/chatty" component={Chatty}/> | ||
|
||
<Route component={Chatty}/> | ||
</Switch> | ||
</React.Fragment> | ||
) | ||
} | ||
} | ||
|
||
export default App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react' | ||
import {MuiThemeProvider} from '@material-ui/core/styles' | ||
import Theme from './Theme' | ||
import App from './App' | ||
import AuthProvider from '../context/auth/AuthProvider' | ||
import ChattyProvider from '../context/chatty/ChattyProvider' | ||
import './global.css' | ||
import './shacktags.css' | ||
import './comment_tree.css' | ||
|
||
class Root extends React.Component { | ||
render() { | ||
return ( | ||
<MuiThemeProvider theme={Theme}> | ||
<AuthProvider> | ||
<ChattyProvider> | ||
<App/> | ||
</ChattyProvider> | ||
</AuthProvider> | ||
</MuiThemeProvider> | ||
) | ||
} | ||
} | ||
|
||
export default Root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import createMuiTheme from '@material-ui/core/styles/createMuiTheme' | ||
|
||
export default createMuiTheme({ | ||
palette: { | ||
type: 'dark', | ||
primary: { | ||
light: '#6fbf73', | ||
main: '#357a38', | ||
dark: '#357a38' | ||
}, | ||
secondary: { | ||
light: '#33eaff', | ||
main: '#00e5ff', | ||
dark: '#00a0b2' | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
ul.comments { | ||
background: url("../resources/commentsul.gif") repeat-y 2px bottom; | ||
margin: 0 0 0 5px; | ||
list-style-type: none; | ||
padding: 0; | ||
position: static; | ||
} | ||
|
||
ul.comments li { | ||
background: url("../resources/commentsbullet.gif") no-repeat 2px top; | ||
font-size: 13px; | ||
line-height: 16px; | ||
padding-left: 13px; | ||
} | ||
|
||
ul.comments li:last-child { | ||
background: #000 url("../resources/commentsbulletlast.gif") no-repeat 2px top; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
body { | ||
background-color: black; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
a { | ||
color: #aeae9b; | ||
} | ||
|
||
a:hover { | ||
color: #fff; | ||
} |
Oops, something went wrong.