Skip to content

Commit

Permalink
0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mwjames committed May 25, 2016
1 parent 0c5b8de commit c2f82cf
Show file tree
Hide file tree
Showing 9 changed files with 5,500 additions and 12 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
[![Packagist download count](https://poser.pugx.org/onoi/shared-resources/d/total.png)](https://packagist.org/packages/onoi/shared-resources)
[![Dependency Status](https://www.versioneye.com/php/onoi:shared-resources/badge.png)](https://www.versioneye.com/php/onoi:shared-resources)

shared-resources were part of the [Semantic MediaWiki][smw] code base and is
now being deployed as separate library so that [ResourceLoader][rl] modules
can be used independently.
Some resources in this package were part of the [Semantic MediaWiki][smw] code base and are
now deployed as separate library so that [ResourceLoader][rl] modules can be used independently.

## Requirements

Expand All @@ -20,7 +19,7 @@ the dependency to your [composer.json][composer].
```json
{
"require": {
"onoi/shared-resources": "~0.1"
"onoi/shared-resources": "~0.2"
}
}
```
Expand All @@ -31,8 +30,6 @@ the dependency to your [composer.json][composer].
$GLOBALS['wgResourceModules']['ext.something'] = array(
...
'dependencies' => array(
'onoi.rangeslider',
'onoi.blockUI',
'onoi.md5',
'onoi.blobstore'
);
Expand All @@ -45,13 +42,14 @@ mw.loader.using( 'onoi.md5' ).done( function () {

### Resources

- `onoi.md5` (2.3.0)
- `onoi.md5` (1.1.0)
- `onoi.blockUI` (2.70)
- `onoi.rangeslider` (2.1.2)
- `onoi.localForage` (1.4.0)
- `onoi.localForage` (1.4.2)
- `onoi.async` (1.0)
- `onoi.qtip` (3.0.3)
- `onoi.jstorage` (0.4.12)
- `onoi.blobstore` (0.1, a simple storage engine using `localForage` with time eviction)
- `onoi.blobstore` (0.1)

## Contribution and support

Expand All @@ -64,6 +62,11 @@ A list of people who have made contributions in the past can be found [here][con

## Release notes

- 0.2 (2016-05-25)
- Addedd `onoi.qtip` 3.0.3
- Replaced `onoi.localForage` 1.4.0 with 1.4.2
- Replaced `onoi.md5` 2.3.0 with 1.1.0 as some issues were encountered when loading it as resource

- 0.1 (2016-04-05)
- Initial release

Expand All @@ -78,6 +81,7 @@ plug-ins are deployed with their respective published licenses.
- [Mozilla localForage](https://github.com/mozilla/localForage/releases), Apache License 2.0
- [jquery.async](http://mess.genezys.net/jquery/jquery.async.php) Dual licensed under the MIT and GPL licenses
- [jStorage](https://github.com/andris9/jStorage), Unlicense
- [jquery.qtip](http://qtip2.com/), Dual licensed under the MIT and GPL licenses
- `onoi.blobstore` (0.1, GPL 2+)

[composer]: https://getcomposer.org/
Expand Down
66 changes: 65 additions & 1 deletion Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,60 @@

if ( defined( 'MEDIAWIKI' ) ) {

// Core styles
$GLOBALS['wgResourceModules']['onoi.qtip.core'] = array(
'localBasePath' => __DIR__ ,
'remoteExtPath' => '../vendor/onoi/shared-resources',
'position' => 'bottom',
'styles' => array(
'res/jquery.qtip/core/jquery.qtip.css'
),
'scripts' => array(
'res/jquery.qtip/core/jquery.qtip.js'
),
'targets' => array(
'mobile',
'desktop'
)
);

// Core styles, Basic colour styles, CSS3 styles
// Viewport adjustment, SVG support
$GLOBALS['wgResourceModules']['onoi.qtip.extended'] = array(
'localBasePath' => __DIR__ ,
'remoteExtPath' => '../vendor/onoi/shared-resources',
'position' => 'bottom',
'styles' => array(
'res/jquery.qtip/extended/jquery.qtip.css'
),
'scripts' => array(
'res/jquery.qtip/extended/jquery.qtip.js'
),
'targets' => array(
'mobile',
'desktop'
)
);

$GLOBALS['wgResourceModules']['onoi.qtip'] = array(
'localBasePath' => __DIR__ ,
'remoteExtPath' => '../vendor/onoi/shared-resources',
'position' => 'bottom',
'dependencies' => array(
'onoi.qtip.extended',
),
'targets' => array(
'mobile',
'desktop'
)
);

$GLOBALS['wgResourceModules']['onoi.md5'] = array(
'localBasePath' => __DIR__ ,
'remoteExtPath' => '../vendor/onoi/shared-resources',
'position' => 'bottom',
'scripts' => array(
'res/md5/md5.js'
'res/md5/jquery.md5.js'
),
'targets' => array(
'mobile',
Expand Down Expand Up @@ -88,6 +136,22 @@
)
);

$GLOBALS['wgResourceModules']['onoi.util'] = array(
'localBasePath' => __DIR__ ,
'remoteExtPath' => '../vendor/onoi/shared-resources',
'position' => 'bottom',
'scripts' => array(
'res/onoi.util.js'
),
'dependencies' => array(
'onoi.md5',
),
'targets' => array(
'mobile',
'desktop'
)
);

$GLOBALS['wgResourceModules']['onoi.async'] = array(
'localBasePath' => __DIR__ ,
'remoteExtPath' => '../vendor/onoi/shared-resources',
Expand Down
124 changes: 124 additions & 0 deletions res/jquery.qtip/core/jquery.qtip.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
/*
* qTip2 - Pretty powerful tooltips - v3.0.3
* http://qtip2.com
*
* Copyright (c) 2016
* Released under the MIT licenses
* http://jquery.org/license
*
* Date: Wed May 11 2016 06:50 EDT-0400
* Plugins: None
* Styles: core
*/
.qtip{
position: absolute;
left: -28000px;
top: -28000px;
display: none;

max-width: 280px;
min-width: 50px;

font-size: 10.5px;
line-height: 12px;

direction: ltr;

box-shadow: none;
padding: 0;
}

.qtip-content{
position: relative;
padding: 5px 9px;
overflow: hidden;

text-align: left;
word-wrap: break-word;
}

.qtip-titlebar{
position: relative;
padding: 5px 35px 5px 10px;
overflow: hidden;

border-width: 0 0 1px;
font-weight: bold;
}

.qtip-titlebar + .qtip-content{ border-top-width: 0 !important; }

/* Default close button class */
.qtip-close{
position: absolute;
right: -9px; top: -9px;
z-index: 11; /* Overlap .qtip-tip */

cursor: pointer;
outline: medium none;

border: 1px solid transparent;
}

.qtip-titlebar .qtip-close{
right: 4px; top: 50%;
margin-top: -9px;
}

* html .qtip-titlebar .qtip-close{ top: 16px; } /* IE fix */

.qtip-titlebar .ui-icon,
.qtip-icon .ui-icon{
display: block;
text-indent: -1000em;
direction: ltr;
}

.qtip-icon, .qtip-icon .ui-icon{
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
text-decoration: none;
}

.qtip-icon .ui-icon{
width: 18px;
height: 14px;

line-height: 14px;
text-align: center;
text-indent: 0;
font: normal bold 10px/13px Tahoma,sans-serif;

color: inherit;
background: transparent none no-repeat -100em -100em;
}

/* Applied to 'focused' tooltips e.g. most recently displayed/interacted with */
.qtip-focus{}

/* Applied on hover of tooltips i.e. added/removed on mouseenter/mouseleave respectively */
.qtip-hover{}

/* Default tooltip style */
.qtip-default{
border: 1px solid #F1D031;

background-color: #FFFFA3;
color: #555;
}

.qtip-default .qtip-titlebar{
background-color: #FFEF93;
}

.qtip-default .qtip-icon{
border-color: #CCC;
background: #F1F1F1;
color: #777;
}

.qtip-default .qtip-titlebar .qtip-close{
border-color: #AAA;
color: #111;
}
Loading

0 comments on commit c2f82cf

Please sign in to comment.