Skip to content

Commit

Permalink
Merge branch 'goalify'
Browse files Browse the repository at this point in the history
* goalify: (104 commits)
  Regression: Various search provider fixes (RocketChat#10591)
  Supplement TOS and privacy policy texts for use within server instances
  Fix /api/v1/settings.oauth not sending needed info for SAML & CAS (RocketChat#10596)
  Fix the Apps and Livechats not getting along well with each other (RocketChat#10598)
  [FIX] Missing "Administration" menu for users with some administration permissions (RocketChat#10551)
  [FIX] Member list search with no results (RocketChat#10599)
  merge vi-VN and vi json
  Add and enhance translations
  Update gitlab, npm package lock, include current server update script
  Adds Visual Studio Code debugging configuration (RocketChat#10586)
  [FIX] Integrations with room data not having the usernames filled in (RocketChat#10576)
  fixed problems with margin negative (RocketChat#10558)
  Add some information regarding Zapier and Bots to the integrations page (RocketChat#10574)
  Added target="_blank" to homepage and support link. (RocketChat#10575)
  [FIX] Stop Firefox announcement overflowing viewport (RocketChat#10503)
  [FIX] Wordpress oAuth authentication wasn't behaving correctly (RocketChat#10550)
  Fix inconsistent response of settings.oauth endpoint (RocketChat#10553)
  Regression: Remove added mentions on quote/reply (RocketChat#10571)
  Fix the attachments and fields incorrectly failing on validation (RocketChat#10573)
  Deps update (RocketChat#10549)
  ...
  • Loading branch information
trongthanh committed May 2, 2018
2 parents 9538b04 + f2d8189 commit 4aa31f3
Show file tree
Hide file tree
Showing 364 changed files with 25,976 additions and 7,790 deletions.
44 changes: 44 additions & 0 deletions .docker/Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM registry.access.redhat.com/rhscl/nodejs-8-rhel7

ENV RC_VERSION 0.64.0-develop

MAINTAINER [email protected]

LABEL name="Rocket.Chat" \
vendor="Rocket.Chat" \
version="${RC_VERSION}" \
release="1" \
url="https://rocket.chat" \
summary="The Ultimate Open Source Web Chat Platform" \
description="The Ultimate Open Source Web Chat Platform" \
run="docker run -d --name ${NAME} ${IMAGE}"


# This is ugly... But for some reason npm and node aren't available at this stage.
ENV PATH /opt/rh/rh-nodejs8/root/usr/bin:/opt/app-root/src/node_modules/.bin/:/opt/app-root/src/.npm-global/bin/:/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

RUN set -x \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 0E163286C20D07B9787EBE9FD7F9D0414FD08104 \
&& curl -SLf "https://releases.rocket.chat/${RC_VERSION}/download" -o rocket.chat.tgz \
&& curl -SLf "https://releases.rocket.chat/${RC_VERSION}/asc" -o rocket.chat.tgz.asc \
&& gpg --verify rocket.chat.tgz.asc \
&& tar -zxf rocket.chat.tgz -C /opt/app-root/src/ \
&& cd /opt/app-root/src/bundle/programs/server \
&& npm install

COPY licenses /licenses

VOLUME /opt/app-root/src/uploads

WORKDIR /opt/app-root/src/bundle

ENV DEPLOY_METHOD=docker-redhat \
NODE_ENV=production \
MONGO_URL=mongodb://mongo:27017/rocketchat \
HOME=/tmp \
PORT=3000 \
ROOT_URL=http://localhost:3000

EXPOSE 3000

CMD ["node", "main.js"]
22 changes: 22 additions & 0 deletions .docker/licenses/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015-2017 Rocket.Chat Technologies Corp.

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.

1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ packages/rocketchat-katex/client/katex/katex.min.js
packages/rocketchat-livechat/.app/node_modules
packages/rocketchat-livechat/assets/*.min.js
packages/rocketchat-livechat/assets/rocket-livechat.js
packages/rocketchat-migrations/
packages/rocketchat-theme/client/minicolors/jquery.minicolors.js
packages/rocketchat-ui/client/lib/customEventPolyfill.js
packages/rocketchat-ui/client/lib/Modernizr.js
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"curly": [2, "all"],
"eqeqeq": [2, "allow-null"],
"new-cap": [2, {
"capIsNewExceptions": ["Match.Optional", "Match.Maybe", "Match.ObjectIncluding", "Push.Configure", "SHA256"]
"capIsNewExceptions": ["Match.Optional", "Match.Maybe", "Match.OneOf", "Match.Where", "Match.ObjectIncluding", "Push.Configure", "SHA256"]
}],
"use-isnan": 2,
"valid-typeof": 2,
Expand Down
59 changes: 58 additions & 1 deletion .github/history.json
Original file line number Diff line number Diff line change
Expand Up @@ -12207,5 +12207,62 @@
"web-flow"
]
}
],
"0.63.2": [
{
"pr": "10475",
"title": "[FIX] Even TypeErrors with SAML",
"userLogin": "graywolf336",
"contributors": [
"graywolf336"
]
},
{
"pr": "10408",
"title": "add redhat dockerfile to master",
"userLogin": "geekgonecrazy",
"contributors": [
"geekgonecrazy"
]
}
],
"0.63.3": [
{
"pr": "10485",
"title": "[FIX] The 'channel.messages' REST API Endpoint error",
"userLogin": "rafaelks",
"milestone": "0.64.0",
"contributors": [
"rafaelks",
"web-flow"
]
},
{
"pr": "10218",
"title": "Added one2mail.info to default blocked domains list",
"userLogin": "nsuchy",
"milestone": "0.64.0",
"contributors": [
"nsuchy",
"web-flow"
]
},
{
"pr": "10476",
"title": "Release 0.63.2",
"userLogin": "graywolf336",
"contributors": [
"graywolf336",
"web-flow"
]
},
{
"pr": "10475",
"title": "[FIX] Even TypeErrors with SAML",
"userLogin": "graywolf336",
"contributors": [
"graywolf336"
]
}
]
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
**/build/*
**/node_modules/*
**/tmp/*
**/.meteor/.id
**/.meteor/dev_bundle
**/.meteor/local*
**/.meteor/meteorite
Expand Down Expand Up @@ -73,3 +74,5 @@ pm2.json
settings.json
build.sh
/public/livechat
packages/rocketchat-i18n/i18n/livechat.*
yarn.lock
11 changes: 5 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ stages:

test:
stage: test
only:
- develop
- goalify
except:
- master
script:
- npm install
- npm run lint
Expand All @@ -41,6 +40,9 @@ build:
stage: build
only:
- master
before_script:
# Remove previous output
- rm -rf $OUTPUT || true
script:
# Install meteor VM (not applicable for shell executor)
# - if [ ! -e "/usr/local/bin/meteor" ]; then curl https://install.meteor.com | sed s/--progress-bar/-sL/g | /bin/sh; fi
Expand All @@ -53,9 +55,6 @@ build:
- cd $OUTPUT
- mv Goalify.Chat.tar.gz goalify-chat-server.tar.gz
- aws s3 cp *.gz s3://goalify.chat/downloads/beta/
# Remove output
- cd ..
- rm -r $OUTPUT
artifacts:
paths:
- build/*.gz
7 changes: 0 additions & 7 deletions .meteor/.id

This file was deleted.

4 changes: 4 additions & 0 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ rocketchat:ui-master
rocketchat:ui-message
rocketchat:ui-sidenav
rocketchat:ui-vrecord
rocketchat:user-data-download
rocketchat:version
rocketchat:videobridge
rocketchat:webrtc
Expand Down Expand Up @@ -185,3 +186,6 @@ todda00:friendly-slugs
yasaricli:slugify
yasinuslu:blaze-meta
rocketchat:version-check

rocketchat:search
chatpal:search
9 changes: 6 additions & 3 deletions .meteor/versions
1 change: 1 addition & 0 deletions .scripts/set-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const files = [
'./.circleci/snap.sh',
'./.circleci/update-releases.sh',
'./.docker/Dockerfile',
'./.docker/Dockerfile.rhel',
'./packages/rocketchat-lib/rocketchat.info'
];
const readFile = (file) => {
Expand Down
94 changes: 94 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to meteor debug",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"restart": false,
"sourceMaps": true,
"sourceMapPathOverrides": {
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
},
"protocol": "inspector"
},
{
"type": "chrome",
"request": "launch",
"name": "Frontend (Chrome)",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
}
},
{
"type": "node",
"request": "launch",
"name": "Server (debug)",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"debug"
],
"port": 9229,
"timeout": 300000, //Rocket.Chat really takes some time to startup, so play it safe
"sourceMapPathOverrides": {
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
},
"protocol": "inspector",
"env": {
"USE_UNRELEASED_ROCKETAPPS_FRAMEWORK": "true"
}
},
{
"type": "node",
"request": "launch",
"name": "Server (debug-brk)",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"debug-brk"
],
"port": 9229,
"timeout": 300000, //Rocket.Chat really takes some time to startup, so play it safe
"sourceMapPathOverrides": {
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
},
"protocol": "inspector",
"env": {
"USE_UNRELEASED_ROCKETAPPS_FRAMEWORK": "true"
}
},
{
"type": "node",
"request": "launch",
"name": "Server (Testmode)",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run",
"debug"
],
"port": 9229,
"timeout": 300000, //Rocket.Chat really takes some time to startup, so play it safe
"sourceMapPathOverrides": {
"meteor://💻app/packages/rocketchat:*": "${workspaceFolder}/packages/rocketchat-*"
},
"env": {
"TEST_MODE": "true"
},
"protocol": "inspector"
}
],
"compounds": [
{
"name": "Server + Frontend",
"configurations": [
"Server (debug-brk)",
"Frontend (Chrome)"
]
}
]
}
Loading

0 comments on commit 4aa31f3

Please sign in to comment.