Skip to content

Commit

Permalink
Item2138:
Browse files Browse the repository at this point in the history
   * shipping minified and compressed files
   * using ZonePlugin to separate CSS and JS



git-svn-id: http://svn.foswiki.org/trunk/MetaCommentPlugin@6300 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Feb 12, 2010
1 parent b406c16 commit eb24cec
Show file tree
Hide file tree
Showing 14 changed files with 358 additions and 321 deletions.
4 changes: 2 additions & 2 deletions lib/Foswiki/Plugins/MetaCommentPlugin.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2009-2010 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand All @@ -16,7 +16,7 @@ use strict;
use Foswiki::Func ();

our $VERSION = '$Rev$';
our $RELEASE = '0.1';
our $RELEASE = '0.2';
our $SHORTDESCRIPTION = 'An easy to use comment system';
our $NO_PREFS_IN_TOPIC = 1;
our $baseWeb;
Expand Down
9 changes: 5 additions & 4 deletions lib/Foswiki/Plugins/MetaCommentPlugin/Core.pm
@@ -1,6 +1,6 @@
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/
#
# Copyright (C) 2009 Michael Daum http://michaeldaumconsulting.com
# Copyright (C) 2009-2010 Michael Daum http://michaeldaumconsulting.com
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -231,12 +231,13 @@ sub METACOMMENTS {

Foswiki::Plugins::JQueryPlugin::createPlugin("simplemodal");
Foswiki::Plugins::JQueryPlugin::createPlugin("form");
Foswiki::Func::addToHEAD("METACOMMENTPLUGIN", <<'HERE', 'JQUERYPLUGIN::SIMPLEMODAL');
Foswiki::Func::addToZone("head", "METACOMMENTPLUGIN::CSS", <<'HERE', 'JQUERYPLUGIN::SIMPLEMODAL');
<link rel='stylesheet' href='%PUBURLPATH%/%SYSTEMWEB%/MetaCommentPlugin/metacomment.css' type='text/css' media='all' />
<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/MetaCommentPlugin/metacomment.js'></script>
HERE

Foswiki::Func::addToZone("body", "METACOMMENTPLUGIN::JS", <<'HERE', 'JQUERYPLUGIN::SIMPLEMODAL');
<script type='text/javascript' src='%PUBURLPATH%/%SYSTEMWEB%/MetaCommentPlugin/metacomment.js'></script>
HERE

# sanitize params
$params->{topic} ||= $topic;
Expand Down
8 changes: 8 additions & 0 deletions lib/Foswiki/Plugins/MetaCommentPlugin/MANIFEST
@@ -1,8 +1,16 @@
data/System/MetaCommentPlugin.txt 0644
lib/Foswiki/Plugins/MetaCommentPlugin/Core.pm 0644
lib/Foswiki/Plugins/MetaCommentPlugin.pm 0644
pub/System/MetaCommentPlugin/Makefile 0644
pub/System/MetaCommentPlugin/metacomment.css 0644
pub/System/MetaCommentPlugin/metacomment.css.gz 0644
pub/System/MetaCommentPlugin/metacomment.js 0644
pub/System/MetaCommentPlugin/metacomment.js.gz 0644
pub/System/MetaCommentPlugin/metacomment_prefs.js 0644
pub/System/MetaCommentPlugin/metacomment_prefs.js.gz 0644
pub/System/MetaCommentPlugin/metacomment_prefs.uncompressed.js 0644
pub/System/MetaCommentPlugin/metacomment.uncompressed.css 0644
pub/System/MetaCommentPlugin/metacomment.uncompressed.js 0644
pub/System/MetaCommentPlugin/nobody.gif 0644
templates/metacomments.tmpl 0644
templates/view.comments.tmpl 0644
7 changes: 7 additions & 0 deletions pub/System/MetaCommentPlugin/Makefile
@@ -0,0 +1,7 @@
FOSWIKI_ROOT=~/foswiki/trunk/core
TARGET= \
metacomment_prefs.js \
metacomment.css \
metacomment.js

-include $(FOSWIKI_ROOT)/pub/System/JQueryPlugin/Makefile.include
95 changes: 3 additions & 92 deletions pub/System/MetaCommentPlugin/metacomment.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added pub/System/MetaCommentPlugin/metacomment.css.gz
Binary file not shown.
218 changes: 9 additions & 209 deletions pub/System/MetaCommentPlugin/metacomment.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added pub/System/MetaCommentPlugin/metacomment.js.gz
Binary file not shown.

0 comments on commit eb24cec

Please sign in to comment.