Skip to content

Commit

Permalink
feat: New and (eventually) improved React version.
Browse files Browse the repository at this point in the history
  • Loading branch information
NiXXeD committed Aug 26, 2018
1 parent ac194d1 commit 97575aa
Show file tree
Hide file tree
Showing 114 changed files with 3,334 additions and 62 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "react-app"
}
29 changes: 21 additions & 8 deletions .gitignore
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*
1,863 changes: 1,863 additions & 0 deletions CRA-README.md

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions README.md
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).
8 changes: 8 additions & 0 deletions archive/.gitignore
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.
21 changes: 21 additions & 0 deletions archive/LICENSE
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.
57 changes: 57 additions & 0 deletions archive/package.json
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"
}
}
4 changes: 2 additions & 2 deletions readme.md → archive/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Notes:
npm run server
~~~~

##### Technology Used
---------------------
Technology Used
---

* [Angular2](https://angular.io/) (SPA Framework)
* [TypeScript](https://github.com/Microsoft/TypeScript) (Language)
Expand Down
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.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
declare var _:any
import {Injectable} from '@angular/core'
import {ApiService} from '../services/ApiService'
import {SettingsService} from '../services/SettingsService'
import {ToastService} from '../services/ToastService'
import {ApiService} from './ApiService'
import {SettingsService} from './SettingsService'
import {ToastService} from './ToastService'

@Injectable()
export class ShackMessageService {
Expand Down
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.
71 changes: 22 additions & 49 deletions package.json
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 added public/favicon.ico
Binary file not shown.
37 changes: 37 additions & 0 deletions public/index.html
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>
15 changes: 15 additions & 0 deletions public/manifest.json
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"
}
21 changes: 21 additions & 0 deletions src/app/App.js
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
25 changes: 25 additions & 0 deletions src/app/Root.js
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
17 changes: 17 additions & 0 deletions src/app/Theme.js
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'
}
}
})
18 changes: 18 additions & 0 deletions src/app/comment_tree.css
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;
}
13 changes: 13 additions & 0 deletions src/app/global.css
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;
}
Loading

0 comments on commit 97575aa

Please sign in to comment.