Skip to content

Commit

Permalink
refactor: alias import with a basic namespace
Browse files Browse the repository at this point in the history
this may be what's conflicting with other features of Discourse

[#1]
  • Loading branch information
alxndr committed Nov 1, 2023
1 parent 37ecb9a commit ff5d3c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
n/a


## [0.2.2] 2023-10-31

### Updated

* Rename the imported `tippy` function.


## [0.2.1] 2023-10-22

### Added
Expand All @@ -27,6 +34,8 @@ n/a

MVP release.


[0.2.2]: https://github.com/kglw-dot-net/discourse-plugin-gizzard-setlist/releases/tag/v0.2.2
[0.2.1]: https://github.com/kglw-dot-net/discourse-plugin-gizzard-setlist/releases/tag/v0.2.1
[0.2.0]: https://github.com/kglw-dot-net/discourse-plugin-gizzard-setlist/releases/tag/v0.2.0
[Unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.2.1...HEAD
4 changes: 2 additions & 2 deletions assets/javascripts/discourse/initializers/setlist.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import tippy from 'tippy.js';
import tippy as kglwTippy from 'tippy.js';

import { withPluginApi } from 'discourse/lib/plugin-api';
import ComposerController from 'discourse/controllers/composer';
Expand Down Expand Up @@ -49,7 +49,7 @@ async function doTheSetlist(setlistElement) {
if (tracksArr) return setlistStr + `<br/><b>${whichSet === 'e' ? 'Encore' : `Set ${whichSet}`}:</b> ` + tracksArr.join('');
return setlistStr;
}, '')
tippy(setlistElement, {
kglwTippy(setlistElement, {
content: `<a href="https://kglw.net/setlists/${permalink}" target="_blank" rel="noopener">${showdate} @ ${venuename} (${city}, ${state || country})</a>${setlist}`,
placement: 'top-start',
duration: 0,
Expand Down
2 changes: 1 addition & 1 deletion plugin.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# name: discourse-plugin-gizzard-setlist
# about: Turn a [setlist] code into a King Gizz setlist: `[setlist]2022-10-02[/setlist]` use `#2` to specify second show on same date `[setlist]2023-06-08#2[/setlist]`
# version: 0.2.1
# version: 0.2.2
# authors: KGLW.net, Axe <[email protected]>
# url: https://github.com/kglw-dot-net/discourse-plugin-gizzard-setlist

Expand Down

0 comments on commit ff5d3c8

Please sign in to comment.