Commit 8bb347e8 authored by Jonathan Porta's avatar Jonathan Porta
Browse files

so broken.

parent 830e7e34
......@@ -24,6 +24,8 @@ COPY . /var/app
# ./node_modules/.bin/eslint . && \
# npm run build
RUN cd ./node_modules/@steemit/steem-js && yarn install && yarn build-browser && cd -
RUN mkdir tmp && \
yarn test && yarn build
......
......@@ -6,7 +6,7 @@
"helmet": {
"directives": {
"childSrc": "'self'",
"connectSrc": "'self' steemit.com https://api.steemit.com api.blocktrades.us",
"connectSrc": "'self' steemit.com https://api.steemit.com https://testnet.steemitdev.com",
"defaultSrc": "'self'",
"fontSrc": "data: fonts.gstatic.com",
"frameAncestors": "'none'",
......
......@@ -24,7 +24,7 @@
"license": "MIT",
"dependencies": {
"@steem/crypto-session": "git+https://github.com/steemit/crypto-session.git#83a90b319ce5bc6a70362d52a15a815de7e729bb",
"@steemit/steem-js": "git+https://github.com/steemit/steem-js.git#b910ef19894c81d2d98595c286e384dfb94c6ea1",
"@steemit/steem-js": "git+https://github.com/steemit/steem-js.git#791c7930a952415a0ee45855142e52ee0c657f8e",
"assert": "1.4.1",
"autoprefixer-loader": "3.2.0",
"babel-cli": "6.26.0",
......
......@@ -448,7 +448,6 @@ module.exports = {
order_direction: 'direction_descending',
limit: 11,
status: 'all',
last_id: null,
})
);
dispatch(
......
......@@ -32,7 +32,7 @@ export function* listProposals({
while (!proposals) {
if (status === 'voted') {
const voterProposals = yield call(
[api, api.listVoterProposalsAsync],
[api, api.listProposalsAsync],
start,
order_by,
order_direction,
......@@ -78,7 +78,7 @@ export function* listVoterProposals({
while (!isLast) {
const data = yield call(
[api, api.listVoterProposalsAsync],
[api, api.listProposalsAsync],
start,
order_by,
order_direction,
......
......@@ -28,6 +28,7 @@ export function serverApiLogout() {
let last_call;
export function serverApiRecordEvent(type, val, rate_limit_ms = 5000) {
return;
if (!process.env.BROWSER || window.$STM_ServerBusy) return;
if (last_call && new Date() - last_call < rate_limit_ms) return;
last_call = new Date();
......@@ -43,6 +44,7 @@ export function serverApiRecordEvent(type, val, rate_limit_ms = 5000) {
let last_page, last_views, last_page_promise;
export function recordPageView(page, referer, account) {
return Promise.resolve(0);
if (last_page_promise && page === last_page) return last_page_promise;
if (!process.env.BROWSER) return Promise.resolve(0);
......
......@@ -33,7 +33,7 @@ db.Sequelize = Sequelize;
if (env === 'development') {
// in dev, sync all table schema automatically for convenience
sequelize.sync();
// sequelize.sync();
}
function esc(value, max_length = 256) {
......
......@@ -29,9 +29,9 @@
dependencies:
"@steemit/libcrypto" "^1.0.1"
"@steemit/steem-js@git+https://github.com/steemit/steem-js.git#b910ef19894c81d2d98595c286e384dfb94c6ea1":
"@steemit/steem-js@git+https://github.com/steemit/steem-js.git#791c7930a952415a0ee45855142e52ee0c657f8e":
version "0.7.5"
resolved "git+https://github.com/steemit/steem-js.git#b910ef19894c81d2d98595c286e384dfb94c6ea1"
resolved "git+https://github.com/steemit/steem-js.git#791c7930a952415a0ee45855142e52ee0c657f8e"
dependencies:
"@steemit/rpc-auth" "^1.1.1"
bigi "^1.4.2"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment