Permalink
Browse files

refactoring: rename jquery.phpfreechat.*.js to pfc-*.js because too m…

…uch dot makes problems on few servers
  • Loading branch information...
1 parent d395837 commit 2da3e9a43e42946c48ea8c4726f8de91b81d8fe8 @kerphi committed Mar 1, 2013
View
@@ -50,8 +50,8 @@ setup-minify:
@npm install -g less clean-css pack uglify-js
# compress javascript and css
-minify: $(path)/client/jquery.phpfreechat.js $(path)/client/jquery.phpfreechat.*.js $(path)/client/themes/*/jquery.phpfreechat.less $(path)/client/themes/*/jquery.phpfreechat.*.less
- $(shell cat $(path)/client/jquery.phpfreechat.js $(path)/client/jquery.phpfreechat.*.js | uglifyjs -c 2> /dev/null > $(path)/client/jquery.phpfreechat.min.js)
+minify: $(path)/client/pfc.js $(path)/client/pfc-*.js $(path)/client/themes/*/jquery.phpfreechat.less $(path)/client/themes/*/jquery.phpfreechat.*.less
+ $(shell cat $(path)/client/pfc.js $(path)/client/pfc-*.js | uglifyjs -c 2> /dev/null > $(path)/client/pfc.min.js)
$(shell for f in `ls client/themes/*/jquery.phpfreechat.less`; do lessc $$f `echo $$f | sed s/.less/.css/g`; done)
$(shell for f in `ls client/themes/*/jquery.phpfreechat.css`; do cleancss $$f > `echo $$f | sed s/.css/.min.css/g`; done)
@@ -87,9 +87,9 @@ clean-release: setup setup-minify minify
# do not minify .js/.css (and remove .less)
clean-release-for-debug: clean-release
@rm -f $(path)/client/*.min.js
- @cat $(path)/client/*.js > $(path)/client/jquery.phpfreechat.js.tmp
+ @cat $(path)/client/*.js > $(path)/client/pfc.js.tmp
@rm -f $(path)/client/*.js
- @mv $(path)/client/jquery.phpfreechat.js.tmp $(path)/client/jquery.phpfreechat.js
+ @mv $(path)/client/pfc.js.tmp $(path)/client/pfc.js
@rm -f $(path)/client/lib/less-*.js
@rm -f $(path)/client/themes/*/*.less
@rm -f $(path)/client/themes/*/jquery.phpfreechat.min.css
@@ -98,9 +98,9 @@ clean-release-for-debug: clean-release
# remove .less, minify .css and .js
clean-release-for-prod: clean-release
- @mv $(path)/client/jquery.phpfreechat.min.js $(path)/client/jquery.phpfreechat.min.js.tmp
+ @mv $(path)/client/pfc.min.js $(path)/client/pfc.min.js.tmp
@rm -f $(path)/client/*.js
- @mv $(path)/client/jquery.phpfreechat.min.js.tmp $(path)/client/jquery.phpfreechat.min.js
+ @mv $(path)/client/pfc.min.js.tmp $(path)/client/pfc.min.js
@rm -f $(path)/client/lib/less-*.js
@rm -f $(path)/client/themes/*/*.less
@rm -f $(path)/client/themes/*/jquery.phpfreechat.css
View
@@ -23,7 +23,7 @@ JQuery should be included in your html `<head>` before the phpfreechat code:
Include the phpfreechat plugin in your html `<head>`:
```html
<link rel="stylesheet" type="text/css" href="/phpfreechat-2.1.0/client/themes/default/jquery.phpfreechat.min.css" />
- <script src="/phpfreechat-2.1.0/client/jquery.phpfreechat.min.js" type="text/javascript"></script>
+ <script src="/phpfreechat-2.1.0/client/pfc.min.js" type="text/javascript"></script>
```
Add this piece of HTML in your `<body>` where you want the chat to be displayed:
@@ -47,6 +47,7 @@ phpfreechat is released with few themes. You can choose which one you want to us
* `default`
* `carbon`
* `gamer`
+* `phpfreechat`
To select the theme, you only have to change one line in your html `<head>`. To use the `default` theme:
```html
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -60,11 +60,12 @@ Server side tests are written with [vows](http://vowsjs.org/) and are located he
## Modules (client side)
-* `jquery.phpfreechat.js`: just jquery plugin stuff
-* `jquery.phpfreechat.init.js`: phpfreechat's initialization related function
-* `jquery.phpfreechat.core.js`: phpfreechat's core related function
-* `jquery.phpfreechat.auth.js`: phpfreechat's authentication related function
-* `jquery.phpfreechat.utils.js`: phpfreechat's helpers
+* `pfc.js`: just jquery plugin stuff
+* `pfc-init.js`: phpfreechat's initialization related function
+* `pfc-core.js`: phpfreechat's core related function
+* `pfc-auth.js`: phpfreechat's authentication related function
+* `pfc-utils.js`: phpfreechat's helpers
+* ...
## Events (client side)
View
@@ -17,30 +17,30 @@
<script type="text/javascript">var less = { env: 'development' };</script>
<script src="../client/lib/less-1.3.1.min.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.init.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.core.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.auth.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.commands.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_join.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_op.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_kick.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_ban.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.channels.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.users.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.utils.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
+ <script src="../client/pfc-init.js" type="text/javascript"></script>
+ <script src="../client/pfc-core.js" type="text/javascript"></script>
+ <script src="../client/pfc-auth.js" type="text/javascript"></script>
+ <script src="../client/pfc-commands.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_join.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_op.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_kick.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_ban.js" type="text/javascript"></script>
+ <script src="../client/pfc-channels.js" type="text/javascript"></script>
+ <script src="../client/pfc-users.js" type="text/javascript"></script>
+ <script src="../client/pfc-utils.js" type="text/javascript"></script>
<!-- /pfc-debug -->
<!-- pfc-prod
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/default/jquery.phpfreechat.min.css" />
- <script src="../client/jquery.phpfreechat.min.js" type="text/javascript"></script>
+ <script src="../client/pfc.min.js" type="text/javascript"></script>
/pfc-prod -->
<!-- pfc-dev
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/default/jquery.phpfreechat.css" />
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
/pfc-dev -->
@@ -17,30 +17,30 @@
<script type="text/javascript">var less = { env: 'development' };</script>
<script src="../client/lib/less-1.3.1.min.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.init.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.core.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.auth.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.commands.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_join.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_op.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_kick.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_ban.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.channels.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.users.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.utils.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
+ <script src="../client/pfc-init.js" type="text/javascript"></script>
+ <script src="../client/pfc-core.js" type="text/javascript"></script>
+ <script src="../client/pfc-auth.js" type="text/javascript"></script>
+ <script src="../client/pfc-commands.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_join.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_op.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_kick.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_ban.js" type="text/javascript"></script>
+ <script src="../client/pfc-channels.js" type="text/javascript"></script>
+ <script src="../client/pfc-users.js" type="text/javascript"></script>
+ <script src="../client/pfc-utils.js" type="text/javascript"></script>
<!-- /pfc-debug -->
<!-- pfc-prod
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/default/jquery.phpfreechat.min.css" />
- <script src="../client/jquery.phpfreechat.min.js" type="text/javascript"></script>
+ <script src="../client/pfc.min.js" type="text/javascript"></script>
/pfc-prod -->
<!-- pfc-dev
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/default/jquery.phpfreechat.css" />
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
/pfc-dev -->
View
@@ -17,30 +17,30 @@
<script type="text/javascript">var less = { env: 'development' };</script>
<script src="../client/lib/less-1.3.1.min.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.init.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.core.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.auth.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.commands.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_join.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_op.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_kick.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_ban.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.channels.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.users.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.utils.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
+ <script src="../client/pfc-init.js" type="text/javascript"></script>
+ <script src="../client/pfc-core.js" type="text/javascript"></script>
+ <script src="../client/pfc-auth.js" type="text/javascript"></script>
+ <script src="../client/pfc-commands.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_join.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_op.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_kick.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_ban.js" type="text/javascript"></script>
+ <script src="../client/pfc-channels.js" type="text/javascript"></script>
+ <script src="../client/pfc-users.js" type="text/javascript"></script>
+ <script src="../client/pfc-utils.js" type="text/javascript"></script>
<!-- /pfc-debug -->
<!-- pfc-prod
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/carbon/jquery.phpfreechat.min.css" />
- <script src="../client/jquery.phpfreechat.min.js" type="text/javascript"></script>
+ <script src="../client/pfc.min.js" type="text/javascript"></script>
/pfc-prod -->
<!-- pfc-dev
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/carbon/jquery.phpfreechat.css" />
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
/pfc-dev -->
<!-- customized styles for the body -->
View
@@ -17,30 +17,30 @@
<script type="text/javascript">var less = { env: 'development' };</script>
<script src="../client/lib/less-1.3.1.min.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.init.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.core.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.auth.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.commands.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_join.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_op.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_kick.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_ban.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.channels.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.users.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.utils.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
+ <script src="../client/pfc-init.js" type="text/javascript"></script>
+ <script src="../client/pfc-core.js" type="text/javascript"></script>
+ <script src="../client/pfc-auth.js" type="text/javascript"></script>
+ <script src="../client/pfc-commands.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_join.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_op.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_kick.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_ban.js" type="text/javascript"></script>
+ <script src="../client/pfc-channels.js" type="text/javascript"></script>
+ <script src="../client/pfc-users.js" type="text/javascript"></script>
+ <script src="../client/pfc-utils.js" type="text/javascript"></script>
<!-- /pfc-debug -->
<!-- pfc-prod
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/gamer/jquery.phpfreechat.min.css" />
- <script src="../client/jquery.phpfreechat.min.js" type="text/javascript"></script>
+ <script src="../client/pfc.min.js" type="text/javascript"></script>
/pfc-prod -->
<!-- pfc-dev
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/gamer/jquery.phpfreechat.css" />
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
/pfc-dev -->
<!-- customized styles for the body -->
@@ -17,30 +17,30 @@
<script type="text/javascript">var less = { env: 'development' };</script>
<script src="../client/lib/less-1.3.1.min.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.init.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.core.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.auth.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.commands.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_join.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_op.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_kick.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.cmd_ban.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.channels.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.users.js" type="text/javascript"></script>
- <script src="../client/jquery.phpfreechat.utils.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
+ <script src="../client/pfc-init.js" type="text/javascript"></script>
+ <script src="../client/pfc-core.js" type="text/javascript"></script>
+ <script src="../client/pfc-auth.js" type="text/javascript"></script>
+ <script src="../client/pfc-commands.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_join.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_op.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_kick.js" type="text/javascript"></script>
+ <script src="../client/pfc-cmd_ban.js" type="text/javascript"></script>
+ <script src="../client/pfc-channels.js" type="text/javascript"></script>
+ <script src="../client/pfc-users.js" type="text/javascript"></script>
+ <script src="../client/pfc-utils.js" type="text/javascript"></script>
<!-- /pfc-debug -->
<!-- pfc-prod
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/phpfreechat/jquery.phpfreechat.min.css" />
- <script src="../client/jquery.phpfreechat.min.js" type="text/javascript"></script>
+ <script src="../client/pfc.min.js" type="text/javascript"></script>
/pfc-prod -->
<!-- pfc-dev
<script src="../client/lib/jquery-1.8.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="../client/themes/phpfreechat/jquery.phpfreechat.css" />
- <script src="../client/jquery.phpfreechat.js" type="text/javascript"></script>
+ <script src="../client/pfc.js" type="text/javascript"></script>
/pfc-dev -->
</head>

0 comments on commit 2da3e9a

Please sign in to comment.