From f869598cb4d83aa746e07552eb3c18acc8f0def2 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Fri, 25 Oct 2019 12:01:05 +0530 Subject: [PATCH] =?UTF-8?q?[Enhancement]=20Remove=20frontend=20env=20file?= =?UTF-8?q?=20=F0=9F=94=A5(#179)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.sample | 1 - .eslintrc.js | 1 - .../dashboard/settings/inbox/Facebook.vue | 134 +++++++++++------- .../dashboard/settings/inbox/Settings.vue | 105 +++++++------- app/views/layouts/vueapp.html.erb | 5 + config/webpack/environment.js | 10 -- configure | 3 - 7 files changed, 142 insertions(+), 117 deletions(-) delete mode 100644 .env.sample diff --git a/.env.sample b/.env.sample deleted file mode 100644 index 08c9853b0..000000000 --- a/.env.sample +++ /dev/null @@ -1 +0,0 @@ -fb_app_id= diff --git a/.eslintrc.js b/.eslintrc.js index 50f5ee562..8afa4fbe0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -43,6 +43,5 @@ module.exports = { }, globals: { __WEBPACK_ENV__: true, - __FB_APP_ID__: true, }, }; diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/Facebook.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/Facebook.vue index b46a7dae3..05b2c7387 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/Facebook.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/Facebook.vue @@ -1,12 +1,20 @@ diff --git a/config/webpack/environment.js b/config/webpack/environment.js index 3dbc714dc..ed33b0e04 100644 --- a/config/webpack/environment.js +++ b/config/webpack/environment.js @@ -1,6 +1,5 @@ const { environment } = require('@rails/webpacker'); const { VueLoaderPlugin } = require('vue-loader'); -const webpack = require('webpack'); const resolve = require('./resolve'); const vue = require('./loaders/vue'); @@ -17,13 +16,4 @@ environment.loaders.append('audio', { environment.config.merge({ resolve }); -const { fb_app_id: fbAppID } = process.env; - -environment.plugins.prepend( - 'DefinePlugin', - new webpack.DefinePlugin({ - __FB_ID__: `"${fbAppID}"`, - }) -); - module.exports = environment; diff --git a/configure b/configure index a407739e7..5d9283f18 100644 --- a/configure +++ b/configure @@ -5,6 +5,3 @@ # ref docs for detailed instructions cp shared/config/database.yml config/database.yml cp shared/config/application.yml config/application.yml - -# copy frontend env file -cp .env.sample .env