Skip to content

Commit

Permalink
Cleaning up install process
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Lesko committed Apr 22, 2019
1 parent 1cc448d commit 78ff238
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 114 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
src/Public/.DS_Store
src/.DS_Store
src/Database/.DS_Store
src/Controllers/.DS_Store
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,15 @@
"OpenPolice\\": "src/",
"OpenPolice\\Models\\": "storage/app/models/openpolice"
}
},
"extra": {
"laravel": {
"providers": [
"FlexYourRights\\OpenPolice\\OpenPoliceServiceProvider"
],
"aliases": {
"OpenPolice": "FlexYourRights\\OpenPolice\\OpenPoliceFacade"
}
}
}
}
17 changes: 17 additions & 0 deletions src/Controllers/Middleware/routes-api.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

require('../vendor/flexyourrights/openpolice/src/routes.php');
require('../vendor/wikiworldorder/survloop/src/routes.php');
124 changes: 11 additions & 113 deletions src/Database/OpenPoliceSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23596,7 +23596,7 @@ functional OpenPolice.org!</p>
$ vagrant ssh
$ cd /home/vagrant/Code
$ composer global require "laravel/installer"
$ composer create-project laravel/laravel OpenPolice "5.3.*"
$ composer create-project laravel/laravel OpenPolice "5.8.*"
</pre></li></ol>
<p><br></p>
<p>Now you should be able to confirm your successful installation by pulling up http://homestead.test/ in your browser!</p><ul><li>If you like, you can now connect to your server\'s database with something like <a href="https://www.sequelpro.com/" target="_blank">Sequel Pro</a>,
Expand All @@ -23620,8 +23620,7 @@ functional OpenPolice.org!</p>
'NodePromptText' => '<p> </p>
<p> </p>
<div>{{Newsletter Sign Up}}</div>
<p> </p>
<p> </p>',
<p> </p><p> </p><p> </p><p> </p>',
'NodePromptAfter' => '<style>
#nBtn1125 { margin-bottom: 40px; }
#blockWrap849 { margin-bottom: -85px; }
Expand Down Expand Up @@ -25722,86 +25721,6 @@ functional OpenPolice.org!</p>
'NodeResponseSet' => '5',
'NodeDataBranch' => 'users'
]);
DB::table('SL_Node')->insert([
'NodeID' => 1124,
'NodeTree' => '12',
'NodeParentID' => '793',
'NodeType' => 'Instructions Raw',
'NodePromptText' => '<div id="homeHeroTop"></div><center>
<div id="homeHeroBox">
<img id="homeLogo" src="/openpolice/Flex_Open_v4-beta-shade.png" border=0 >
<h1 id="homeHeroHead">Your Story is Too Important <nobr>to be Ignored</nobr></h1>
<h3 id="homeHero2">Prepare, file, and track reports of police misconduct.</h3>
<p>Be the first to know when we launch.</p>
<form action="https://flexyourrights.us5.list-manage.com/subscribe/post?u=6b424f1b6d7c45a5906cd7579&id=31f97a79b7" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" target="_blank">
<div style="position: absolute; left: -5000px;" aria-hidden="true">
<input name="b_6b424f1b6d7c45a5906cd7579_31f97a79b7" tabindex="-1" value="" type="text">
</div>
<p><input name="EMAIL" class="form-control required email" style="width: 250px; margin-bottom: -10px;" id="mce-EMAIL" placeholder="Your email address" type="email" ></p>
<p></p>
<input value="SIGN ME UP" name="subscribe" id="mc-embedded-subscribe" class="btn btn-primary btn-xl m15" style="margin-bottom: 5px; width: 250px;" type="submit">
</form>

<a class="btn btn-danger btn-xl m15" style="width: 250px;" href="/donate" target="_blank" onmouseover="this.style.color=\'#EC2327\';" onmouseout="this.style.color=\'#FFF\';">DONATE</a>

</div>
</center>
<div id="homeHeroBot"></div>',
'NodePromptAfter' => '<style>
#slLogoWrap { display: none; }
#homeHeroTop, #homeHeroBot { width: 100%; height: 40px; }
#homeHeroBot { height: 80px; }
#homeLogo { width: 65%; margin-right: -15px; }
#homeHeroBox { background: none; text-shadow: -1px 1px 1px #000; padding: 15px 0px; }
#homeHero2 { margin-top: 15px; }
#blockWrap[[nID]] { text-shadow: -1px 1px 1px #000; min-height: 530px; }
#blockWrap[[nID]] a.btn:link, #blockWrap[[nID]] a.btn:visited, #blockWrap[[nID]] a.btn:active, #blockWrap[[nID]] a.btn:hover { width: 360px; }
#blockWrap2010 { margin-top: -17px; }
#deferNode2011 { height: 772px; }
#homeDemoVid { height: 600px; }
#deferAnim2011 { margin-top: 250px; }

@media screen and (max-width: 1200px) {
#deferNode2011 { height: 672px; }
#homeDemoVid { height: 500px; }
}
@media screen and (max-width: 992px) {
#homeLogo { width: 90%; }
#homeHeroTop, #homeHeroBot { height: 20px; }
#deferNode2011 { height: 602px; }
#homeDemoVid { height: 380px; }
#deferAnim2011 { margin-top: 200px; }
}
@media screen and (max-width: 768px) {
#homeHeroBox { background: url(/survloop/uploads/trans-black-50.png); }
#homeHeroHead { font-size: 1.75rem; }
#homeHero2 { font-size: 1.3rem; }
#deferNode2011 { height: 472px; }
#homeDemoVid { height: 250px; }
}
@media screen and (max-width: 480px) {
#homeHeroTop, #homeHeroBot { height: 0px; }
#homeLogo { margin-bottom: 10px; }
#blockWrap[[nID]] { background-size: auto 100%; overflow: visible; }
#homeHeroHead { font-size: 1.3rem; }
#homeHero2 { font-size: 1rem; }
#deferNode2011 { height: 470px; }
#homeDemoVid { height: 205px; }
}
</style>
<script type="text/javascript"> $(document).ready(function(){
function checkLogoScroll() {
if (jQuery(this).scrollTop() > 170) $("#slLogoWrap").slideDown("fast");
else $("#slLogoWrap").slideUp("fast");
}
setTimeout(function() { checkLogoScroll(); }, 50);
jQuery(window).scroll(function () { checkLogoScroll(); });
});
</script>',
'NodeResponseSet' => '/complaint-or-compliment',
'NodeDefault' => '#333333;;#EDF8FF;;#FFF;;/openpolice/open-police-hero-1J.jpg;;w100;;P;;center;;h100',
'NodeOpts' => '71'
]);
DB::table('SL_Node')->insert([
'NodeID' => 1125,
'NodeTree' => '12',
Expand Down Expand Up @@ -25854,13 +25773,10 @@ function checkLogoScroll() {
'NodePromptText' => '<div id="homeHeroTop"></div><center>
<div id="homeHeroBox">
<img id="homeLogo" src="/openpolice/Flex_Open_v4-beta-shade.png" border="0">
<h1 id="homeHeroHead">Your Story is Too Important <nobr>to be Ignored</nobr></h1>
<h3 id="homeHero2">Prepare, file, and track reports of police misconduct.</h3>
<div id="btnBig">
<a class="btn btn-primary btn-xl m15" href="/complaint-or-compliment" onmouseover="this.style.color=\'#2B3493\';" onmouseout="this.style.color=\'#FFF\';">SHARE YOUR STORY</a> <a class="btn btn-danger btn-xl m15" href="/donate" target="_blank" onmouseover="this.style.color=\'#EC2327\';" onmouseout="this.style.color=\'#FFF\';" style="color: rgb(255, 255, 255);">DONATE</a></div>
<div id="btnSm">
<a class="btn btn-primary btn-lg m15" href="/complaint-or-compliment" onmouseover="this.style.color=\'#2B3493\';" onmouseout="this.style.color=\'#FFF\';">SHARE YOUR STORY</a> <a class="btn btn-danger btn-lg m15" href="/donate" target="_blank" onmouseover="this.style.color=\'#EC2327\';" onmouseout="this.style.color=\'#FFF\';" style="color: rgb(255, 255, 255);">DONATE</a></div>
</div>
<h2 id="homeHeroHead">Your story is too important <nobr>to be ignored.</nobr></h2>
<h2 id="homeHero2">Prepare, file, and track reports of <nobr>police misconduct.</nobr></h2>
<a id="homeHeroBtn1" class="btn btn-primary btn-lg m15" href="/filing-your-police-complaint" onmouseover="this.style.color=\'#2B3493\';" onmouseout="this.style.color=\'#FFF\';">SHARE YOUR STORY</a>
<a id="homeHeroBtn2" class="btn btn-danger btn-lg m15" href="/donate" target="_blank" onmouseover="this.style.color=\'#EC2327\';" onmouseout="this.style.color=\'#FFF\';" style="color: rgb(255, 255, 255);">DONATE</a></div>
</center>
<div id="homeHeroBot"></div>',
'NodePromptAfter' => '<style>
Expand All @@ -25870,46 +25786,39 @@ function checkLogoScroll() {
#homeHeroTop, #homeHeroBot { width: 100%; height: 40px; }
#homeHeroBot { height: 80px; }
#homeLogo { width: 65%; margin-right: -15px; }
#homeHeroHead { margin-top: 20px; }
#homeHeroBox { background: none; text-shadow: -1px 1px 1px #000; padding: 15px 0px; }
#homeHero2 { margin-top: 15px; }
#blockWrap[[nID]] { background: #333; text-shadow: -1px 1px 1px #000; min-height: 530px; }
#blockWrap[[nID]] a.btn:link, #blockWrap[[nID]] a.btn:visited, #blockWrap[[nID]] a.btn:active, #blockWrap[[nID]] a.btn:hover { width: 360px; }
#blockWrap2010 { margin-top: -17px; }
#deferNode2011 { height: 772px; }
#homeDemoVid { height: 600px; }
#deferAnim2011 { margin-top: 250px; }
#homeHeroHead, #homeHero2, #homeHeroBtn1, #homeHeroBtn2, #mailchimpH2 { font-size: 1.75rem; }

@media screen and (max-width: 1200px) {
#deferNode2011 { height: 672px; }
#homeDemoVid { height: 500px; }
}
@media screen and (max-width: 992px) {
#homeLogo { width: 90%; }
#homeHeroTop, #homeHeroBot { height: 20px; }
#deferNode2011 { height: 602px; }
#homeDemoVid { height: 380px; }
#deferAnim2011 { margin-top: 200px; }
}
@media screen and (max-width: 768px) {
#homeHeroHead, #homeHero2, #homeHeroBtn1, #homeHeroBtn2, #mailchimpH2 { font-size: 1.5rem; }
#btnBig { display: none; }
#btnSm { display: block; }
#blockWrap[[nID]] a.btn:link, #blockWrap[[nID]] a.btn:visited, #blockWrap[[nID]] a.btn:active, #blockWrap[[nID]] a.btn:hover { width: 300px; }
#homeHeroBox { background: url(/survloop/uploads/trans-black-50.png); }
#homeHeroHead { font-size: 1.75rem; }
#homeHero2 { font-size: 1.3rem; }
#deferNode2011 { height: 472px; }
#homeDemoVid { height: 250px; }
}
@media screen and (max-width: 480px) {
#btnSm { margin-top: 10px; }
#homeHeroTop, #homeHeroBot { height: 0px; }
#homeLogo { margin-bottom: 10px; }
#blockWrap[[nID]] { background-size: auto 100%; overflow: visible; min-height: 430px; }
#blockWrap[[nID]] a.btn:link, #blockWrap[[nID]] a.btn:visited, #blockWrap[[nID]] a.btn:active, #blockWrap[[nID]] a.btn:hover { width: 250px; }
#homeHeroHead { font-size: 1.3rem; }
#homeHero2 { font-size: 1rem; }
#deferNode2011 { height: 470px; }
#homeDemoVid { height: 205px; }
}
</style>
<script type="text/javascript"> $(document).ready(function(){
Expand All @@ -25920,7 +25829,7 @@ function checkLogoScroll() {
setTimeout(function() { checkLogoScroll(); }, 50);
jQuery(window).scroll(function () { checkLogoScroll(); });
}); </script>',
'NodeDefault' => '#000;;#EDF8FF;;#FFF;;/openpolice/open-police-hero-1J.jpg;;w100;;P;;center;;h100',
'NodeDefault' => '#000;;#EDF8FF;;#FFF;;/openpolice/open-police-hero-1J.jpg;;w100;;Y;;center;;h100',
'NodeOpts' => '71'
]);
DB::table('SL_Node')->insert([
Expand Down Expand Up @@ -30828,7 +30737,7 @@ function checkYouFatal() {
'NodeParentID' => '793',
'NodeParentOrder' => '10',
'NodeType' => 'Page Block',
'NodeDefault' => '#2B3493;;#FFF;;#EDF8FF;;/openpolice/uploads/ten-rules-still-bg3.jpg;;w100;;P;;left;;auto',
'NodeDefault' => '#2B3493;;#FFF;;#EDF8FF;;/openpolice/uploads/ten-rules-still-bg3.jpg;;w100;;Y;;left;;auto',
'NodeOpts' => '71'
]);
DB::table('SL_Node')->insert([
Expand Down Expand Up @@ -41962,17 +41871,6 @@ function checkVehicType() {
'CondNodeNodeID' => '1113',
'CondNodeLoopID' => '-1'
]);
DB::table('SL_ConditionsNodes')->insert([
'CondNodeID' => 285,
'CondNodeCondID' => '62',
'CondNodeNodeID' => '1128'
]);
DB::table('SL_ConditionsNodes')->insert([
'CondNodeID' => 286,
'CondNodeCondID' => '62',
'CondNodeNodeID' => '1124',
'CondNodeLoopID' => '-1'
]);
DB::table('SL_ConditionsNodes')->insert([
'CondNodeID' => 293,
'CondNodeCondID' => '8',
Expand Down
3 changes: 2 additions & 1 deletion src/OpenPoliceServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class OpenPoliceServiceProvider extends ServiceProvider

public function boot()
{
require __DIR__ . '/routes.php';
//require __DIR__ . '/routes.php';
$this->loadRoutesFrom(__DIR__.'/routes.php');
$this->loadViewsFrom(__DIR__.'/Views', 'openpolice');
$this->publishes([
__DIR__.'/Views' => base_path('resources/views/vendor/openpolice'),
Expand Down

0 comments on commit 78ff238

Please sign in to comment.