Skip to content
Permalink
Browse files

Removed Bulma from NPM deps

- Switched to using Bulma using its CDN
- Removed path to serve node_modules
  • Loading branch information...
shivensinha4 committed Jun 7, 2019
1 parent ad0c70c commit f0729be05888441d089ce070b2242c5b982144c1
Showing with 82 additions and 87 deletions.
  1. +81 −71 .idea/workspace.xml
  2. +0 −9 index.js
  3. +0 −1 package.json
  4. +1 −1 views/header.ejs
  5. +0 −5 yarn.lock
@@ -1,15 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="b56c01f9-8a15-4aef-bfe4-57d29df6d0cc" name="Default" comment="Prefixed environment variables with STEIN_">
<change afterPath="$PROJECT_DIR$/bin/pm2.config.js" afterDir="false" />
<change afterPath="$PROJECT_DIR$/bin/start-stein.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/ecosystem.config.js" beforeDir="false" />
<list default="true" id="b56c01f9-8a15-4aef-bfe4-57d29df6d0cc" name="Default" comment="README partner section, add bin links&#10;&#10;- Create partner section in README&#10;- Created bin commands in package.json to control the Stein server">
<change beforePath="$PROJECT_DIR$/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/index.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/yarn.lock" beforeDir="false" afterPath="$PROJECT_DIR$/yarn.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/views/header.ejs" beforeDir="false" afterPath="$PROJECT_DIR$/views/header.ejs" afterDir="false" />
</list>
<ignored path="$PROJECT_DIR$/.tmp/" />
<ignored path="$PROJECT_DIR$/temp/" />
@@ -31,8 +25,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="46">
<caret line="8" column="12" selection-start-line="8" selection-start-column="12" selection-end-line="8" selection-end-column="12" />
<state relative-caret-position="-575">
<caret line="2" column="28" lean-forward="true" selection-start-line="2" selection-start-column="28" selection-end-line="2" selection-end-column="28" />
</state>
</provider>
</entry>
@@ -46,15 +40,6 @@
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/bin/pm2.config.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="92">
<caret line="4" column="34" lean-forward="true" selection-start-line="4" selection-start-column="10" selection-end-line="4" selection-end-column="34" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/controllers/views/dashboard.js">
<provider selected="true" editor-type-id="text-editor">
@@ -77,26 +62,44 @@
<entry file="file://$PROJECT_DIR$/controllers/views/login.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="368">
<caret line="16" column="35" lean-forward="true" selection-start-line="16" selection-start-column="17" selection-end-line="16" selection-end-column="35" />
<caret line="16" column="46" lean-forward="true" selection-start-line="16" selection-start-column="46" selection-end-line="16" selection-end-column="46" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/index.js">
<entry file="file://$PROJECT_DIR$/.env">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="253">
<caret line="29" column="49" selection-start-line="29" selection-start-column="49" selection-end-line="29" selection-end-column="49" />
<state>
<caret column="15" selection-start-column="15" selection-end-column="15" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="161">
<caret line="20" column="2" selection-start-line="20" selection-start-column="2" selection-end-line="20" selection-end-column="2" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/views/header.ejs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="184">
<caret line="8" column="27" lean-forward="true" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="214">
<caret line="127" column="6" lean-forward="true" selection-start-line="127" selection-start-column="6" selection-end-line="127" selection-end-column="6" />
<first_editor relative-caret-position="260">
<caret line="118" column="42" lean-forward="true" selection-start-line="118" selection-start-column="42" selection-end-line="118" selection-end-column="42" />
</first_editor>
<second_editor />
</state>
@@ -191,7 +194,6 @@
<option value="$PROJECT_DIR$/.gitignore" />
<option value="$PROJECT_DIR$/views/dashboard.ejs" />
<option value="$PROJECT_DIR$/views/login.ejs" />
<option value="$PROJECT_DIR$/views/header.ejs" />
<option value="$PROJECT_DIR$/interfaceRoutes.js" />
<option value="$PROJECT_DIR$/models/admin.js" />
<option value="$PROJECT_DIR$/controllers/views/initialLogin.js" />
@@ -210,10 +212,11 @@
<option value="$PROJECT_DIR$/bin/pm2.config.js" />
<option value="$PROJECT_DIR$/controllers/views/login.js" />
<option value="$PROJECT_DIR$/controllers/views/dashboard.js" />
<option value="$PROJECT_DIR$/index.js" />
<option value="$PROJECT_DIR$/.env" />
<option value="$PROJECT_DIR$/bin/start-stein.js" />
<option value="$PROJECT_DIR$/README.md" />
<option value="$PROJECT_DIR$/.env" />
<option value="$PROJECT_DIR$/views/header.ejs" />
<option value="$PROJECT_DIR$/index.js" />
</list>
</option>
</component>
@@ -435,7 +438,7 @@
<workItem from="1559379621832" duration="6987000" />
<workItem from="1559800696795" duration="10319000" />
<workItem from="1559886919562" duration="1136000" />
<workItem from="1559893102194" duration="6815000" />
<workItem from="1559893102194" duration="9217000" />
</task>
<task id="LOCAL-00001" summary="Added delete and option for limit on edit and delete.">
<created>1508510993137</created>
@@ -773,11 +776,18 @@
<option name="project" value="LOCAL" />
<updated>1559846148049</updated>
</task>
<option name="localTasksCounter" value="49" />
<task id="LOCAL-00049" summary="README partner section, add bin links&#10;&#10;- Create partner section in README&#10;- Created bin commands in package.json to control the Stein server">
<created>1559924623350</created>
<option name="number" value="00049" />
<option name="presentableId" value="LOCAL-00049" />
<option name="project" value="LOCAL" />
<updated>1559924623350</updated>
</task>
<option name="localTasksCounter" value="50" />
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="351478000" />
<option name="totallyTimeSpent" value="353880000" />
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1382" height="744" extended-state="6" />
@@ -809,7 +819,6 @@
<option name="version" value="1" />
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="Updated sheet auth update controller" />
<MESSAGE value="Prettified, improved addStorage catcher" />
<MESSAGE value="Added session store" />
<MESSAGE value="Updated session store" />
@@ -834,7 +843,8 @@
<MESSAGE value="Added PM2 for production start" />
<MESSAGE value="Configured package.json metadata" />
<MESSAGE value="Prefixed environment variables with STEIN_" />
<option name="LAST_COMMIT_MESSAGE" value="Prefixed environment variables with STEIN_" />
<MESSAGE value="README partner section, add bin links&#10;&#10;- Create partner section in README&#10;- Created bin commands in package.json to control the Stein server" />
<option name="LAST_COMMIT_MESSAGE" value="README partner section, add bin links&#10;&#10;- Create partner section in README&#10;- Created bin commands in package.json to control the Stein server" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/assets/plus-outline.svg">
@@ -989,13 +999,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/views/header.ejs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="515">
<caret line="135" column="27" selection-start-line="135" selection-start-column="27" selection-end-line="135" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/controllers/logout.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="46">
@@ -1093,26 +1096,12 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="46">
<caret line="8" column="12" selection-start-line="8" selection-start-column="12" selection-end-line="8" selection-end-column="12" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/out-0.log">
<provider selected="true" editor-type-id="LogFileEditorProvider" />
</entry>
<entry file="file://$PROJECT_DIR$/error-3.log">
<provider selected="true" editor-type-id="LogFileEditorProvider" />
</entry>
<entry file="file://$PROJECT_DIR$/app.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="138">
<caret line="8" column="53" lean-forward="true" selection-start-line="8" selection-start-column="22" selection-end-line="8" selection-end-column="53" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/bin/pm2.config.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="92">
@@ -1127,13 +1116,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/controllers/views/login.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="368">
<caret line="16" column="35" lean-forward="true" selection-start-line="16" selection-start-column="17" selection-end-line="16" selection-end-column="35" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/controllers/views/dashboard.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="23">
@@ -1146,10 +1128,20 @@
<state relative-caret-position="-1624" />
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/index.js">
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="260">
<caret line="118" column="42" lean-forward="true" selection-start-line="118" selection-start-column="42" selection-end-line="118" selection-end-column="42" />
</first_editor>
<second_editor />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/controllers/views/login.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="253">
<caret line="29" column="49" selection-start-line="29" selection-start-column="49" selection-end-line="29" selection-end-column="49" />
<state relative-caret-position="368">
<caret line="16" column="46" lean-forward="true" selection-start-line="16" selection-start-column="46" selection-end-line="16" selection-end-column="46" />
</state>
</provider>
</entry>
@@ -1167,13 +1159,31 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
<state split_layout="SPLIT">
<first_editor relative-caret-position="214">
<caret line="127" column="6" lean-forward="true" selection-start-line="127" selection-start-column="6" selection-end-line="127" selection-end-column="6" />
</first_editor>
<second_editor />
<entry file="file://$PROJECT_DIR$/package.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-575">
<caret line="2" column="28" lean-forward="true" selection-start-line="2" selection-start-column="28" selection-end-line="2" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/views/header.ejs">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="184">
<caret line="8" column="27" lean-forward="true" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-221">
<caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/index.js">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="161">
<caret line="20" column="2" selection-start-line="20" selection-start-column="2" selection-end-line="20" selection-end-column="2" />
</state>
</provider>
</entry>
@@ -20,11 +20,6 @@ let sessionOptions = {
cookie: { expires: false }
};

if (process.env.NODE_ENV === "production") {
app.set("trust proxy", 1); // trust first proxy
sessionOptions.cookie.secure = true; // serve secure cookies
}

// set the view engine to ejs
app.set("view engine", "ejs");
app.set("views", path.join(__dirname, "/views"));
@@ -33,10 +28,6 @@ app.use(cookieParser(sessionSecret));
app.use(session(sessionOptions));
app.use(passport.initialize());
app.use(passport.session());
app.use(
"/node_modules",
express.static(path.resolve(__dirname, "./node_modules"))
);
app.use("/assets", express.static(path.resolve(__dirname, "./assets")));

// Init passport
@@ -30,7 +30,6 @@
"bcrypt": "^3.0.6",
"bluebird": "^3.5.1",
"body-parser": "^1.18.2",
"bulma": "^0.7.2",
"connect-mongo": "^2.0.3",
"cookie-parser": "^1.4.3",
"cors": "^2.8.4",
@@ -2,7 +2,7 @@
<title>Stein Dashboard</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../node_modules/bulma/css/bulma.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.css">
<style>
body {
font-family: 'Open Sans', sans-serif;
@@ -473,11 +473,6 @@ buffer-shims@~1.0.0:
resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51"
integrity sha1-mXjOMXOIxkmth5MCjDR37wRKi1E=

bulma@^0.7.2:
version "0.7.2"
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.2.tgz#8e944377b74c7926558830d38d8e19eaf49f5fb6"
integrity sha512-6JHEu8U/1xsyOst/El5ImLcZIiE2JFXgvrz8GGWbnDLwTNRPJzdAM0aoUM1Ns0avALcVb6KZz9NhzmU53dGDcQ==

bytes@3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048"

0 comments on commit f0729be

Please sign in to comment.
You can’t perform that action at this time.