forked from Github/ocrcc-chatbox
remove unused files
This commit is contained in:
parent
057789e741
commit
0cb939ff7d
@ -1,48 +0,0 @@
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: node:10
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: dep install
|
||||
command: npm install
|
||||
- run:
|
||||
name: install codecov
|
||||
command: npm install -g codecov
|
||||
- run:
|
||||
name: test
|
||||
command: npm test && codecov
|
||||
- run:
|
||||
name: build
|
||||
command: |
|
||||
npm run build
|
||||
[ -f ./dist/index.html ] || exit 1
|
||||
[ -f ./dist/blank.html ] || exit 1
|
||||
[ -f ./dist/widget.js ] || exit 1
|
||||
[ -f ./dist/bookmarklet.js ] || exit 1
|
||||
- run:
|
||||
name: npm start works
|
||||
command: |
|
||||
npm run start &
|
||||
pid=$!
|
||||
sleep 10s
|
||||
ps $pid
|
||||
- run:
|
||||
name: deploy
|
||||
command: |
|
||||
if [ "$CIRCLE_BRANCH" = "master" ]; then
|
||||
git config --global user.email $GH_EMAIL
|
||||
git config --global user.name $GH_NAME
|
||||
npm run deploy
|
||||
fi
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
build-deploy:
|
||||
jobs:
|
||||
- build:
|
||||
filters:
|
||||
branches:
|
||||
ignore: gh-pages
|
@ -1,2 +0,0 @@
|
||||
import '@storybook/addon-actions/register';
|
||||
import '@storybook/addon-links/register';
|
@ -1,9 +0,0 @@
|
||||
import { configure } from '@storybook/react';
|
||||
|
||||
// automatically import all files ending in *.stories.js
|
||||
const req = require.context('../stories', true, /\.stories\.js$/);
|
||||
function loadStories() {
|
||||
req.keys().forEach(filename => req(filename));
|
||||
}
|
||||
|
||||
configure(loadStories, module);
|
@ -1,13 +0,0 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.scss$/,
|
||||
use: ['style-loader', 'css-loader', 'sass-loader'],
|
||||
include: path.resolve(__dirname, '../'),
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
@ -13,8 +13,8 @@ Built on:
|
||||
<script src="https://unpkg.com/safesupport-chatbox" type="text/javascript"></script>
|
||||
<script>
|
||||
var config = {
|
||||
matrixServerUrl: 'https://matrix.rhok.space',
|
||||
botId: '@help-bot:rhok.space',
|
||||
matrixServerUrl: 'https://matrix-client.matrix.org',
|
||||
botId: '@your-help-bot:matrix.org',
|
||||
roomName: 'Support Chat',
|
||||
termsUrl: 'https://tosdr.org/',
|
||||
introMessage: 'This chat application does not collect any of your personal data or any data from your use of this service.',
|
||||
@ -31,8 +31,8 @@ Built on:
|
||||
Options:
|
||||
| Name | Description | Default
|
||||
| ----------- | ----------- | --------- |
|
||||
| `matrixServerUrl` (required) | URL for the Matrix homeserver you want to connect to | `https://matrix.rhok.space` |
|
||||
| `botId` (required) | User ID for the bot account that handles invites | `@help-bot:rhok.space` |
|
||||
| `matrixServerUrl` (required) | URL for the Matrix homeserver you want to connect to | `https://matrix-client.matrix.org` |
|
||||
| `botId` (required) | User ID for the bot account that handles invites | null |
|
||||
| `introMessage` (optional) | First message the user sees before agreeing to the Terms of Use | `This chat application does not collect any of your personal data or any data from your use of this service.` |
|
||||
| `termsUrl` (optional) | URL for the Terms of Use for the chat service | `https://tosdr.org/` |
|
||||
| `roomName` (optional) | Name of the chatroom generated in Riot | 'Support Chat' |
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.3 MiB |
BIN
dist/olm.wasm
vendored
BIN
dist/olm.wasm
vendored
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "safesupport-chatbox",
|
||||
"name": "private-safesupport-chatbox",
|
||||
"version": "1.1.3",
|
||||
"description": "A secure and private embeddable chatbox that connects to Riot",
|
||||
"main": "dist/chatbox.js",
|
||||
@ -89,10 +89,6 @@
|
||||
"@babel/plugin-transform-runtime": "^7.9.0",
|
||||
"@babel/preset-env": "^7.9.0",
|
||||
"@babel/preset-react": "^7.9.4",
|
||||
"@storybook/addon-actions": "5.2.8",
|
||||
"@storybook/addon-links": "5.2.8",
|
||||
"@storybook/addons": "5.2.8",
|
||||
"@storybook/react": "5.2.8",
|
||||
"autoprefixer": "^9.7.5",
|
||||
"babel-core": "7.0.0-bridge.0",
|
||||
"babel-eslint": "10.0.3",
|
||||
@ -125,6 +121,7 @@
|
||||
"style-loader": "1.1.2",
|
||||
"wait-for-expect": "^3.0.2",
|
||||
"webpack": "4.41.5",
|
||||
"webpack-bundle-analyzer": "^3.7.0",
|
||||
"webpack-cli": "3.3.10",
|
||||
"webpack-dev-server": "3.10.1",
|
||||
"webpack-obfuscator": "0.22.0",
|
||||
|
BIN
public/olm.wasm
BIN
public/olm.wasm
Binary file not shown.
@ -1,6 +0,0 @@
|
||||
import React from 'react'
|
||||
import { storiesOf } from '@storybook/react'
|
||||
import Widget from '../src/components/widget'
|
||||
|
||||
storiesOf(`Widget`)
|
||||
.add(`default`, () => <Widget />)
|
@ -3,6 +3,7 @@ const increaseSpecificity = require('postcss-increase-specificity');
|
||||
const autoprefixer = require('autoprefixer');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const path = require('path');
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
|
||||
const devMode = process.env.NODE_ENV !== 'production';
|
||||
|
||||
@ -26,7 +27,8 @@ const defaultConfig = {
|
||||
new CopyPlugin([
|
||||
{ from: 'public', to: '.' },
|
||||
]),
|
||||
],
|
||||
( devMode ? new BundleAnalyzerPlugin() : null )
|
||||
].map(i => i),
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user