Skip to content

Commit

Permalink
remove unused site.js from build #230
Browse files Browse the repository at this point in the history
  • Loading branch information
mef committed May 2, 2023
1 parent 5f45a67 commit 09ee794
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion bin/build-js.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
browserify -t uglifyify dynamic/client.js | uglifyjs -c > source/legacy/js/site.js
#browserify -t uglifyify dynamic/client.js | uglifyjs -c > source/legacy/js/site.js
#~browserify -t brfs -t uglifyify dynamic/g-realtime.js | uglifyjs -c > source/js/g-realtime.js
browserify -t brfs -t uglifyify dynamic/myTagOverflowChecker.js | uglifyjs -c > themes/mango-information-systems/source/legacy/js/myTagOverflowChecker.js
#~browserify -t brfs -t uglifyify dynamic/pullReceipt.js | uglifyjs -c > source/js/pullReceipt.js
Expand Down
16 changes: 8 additions & 8 deletions dynamic/client.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
var io = require('socket.io-client')
, Contact = require('./controller/contact-client')
//~var io = require('socket.io-client')
//~, Contact = require('./controller/contact-client')
//~, GaCustom = require('./controller/ga-custom')

let app = {}

app.io = io
//~app.io = io

//~app.gaCustom = new GaCustom()

//~app.gaCustom.init()

//~window.gaCustom = app.gaCustom

app.gaCustom = {
toGa: function() { void 0 }
}
//~app.gaCustom = {
//~toGa: function() { void 0 }
//~}

if (['/contact/', '/tools/csv-to-json/'].includes(window.location.pathname))
app.contact = new Contact(app)
//~if (['/contact/', '/tools/csv-to-json/'].includes(window.location.pathname))
//~app.contact = new Contact(app)
1 change: 0 additions & 1 deletion source/legacy/js/site.js

This file was deleted.

1 change: 0 additions & 1 deletion themes/mango-information-systems/layout/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@
</div>
</div>

<%- partial('_partial/after-footer') %>
<!-- / layout.index -->
1 change: 0 additions & 1 deletion themes/mango-information-systems/layout/post.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@
</div>
</div>

<%- partial('_partial/after-footer') %>
<!-- begin layout.post -->

0 comments on commit 09ee794

Please sign in to comment.