-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #241 from Ansteorra/crown-requests
Major rewrite of the Awards functionality to be more configurable and…
- Loading branch information
Showing
138 changed files
with
20,794 additions
and
3,405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ meremerd.yaml | |
*.mmd | ||
app/webroot/bootstrap_u_i | ||
**/*.map | ||
scratch.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Guifier from 'guifier' | ||
|
||
const { Controller } = require("@hotwired/stimulus"); | ||
|
||
class GuifierController extends Controller { | ||
static targets = ["hidden", "container"] | ||
static values = { type: String } | ||
|
||
connect() { | ||
var params = { | ||
elementSelector: '#' + this.containerTarget.id, | ||
data: this.hiddenTarget.value, | ||
dataType: this.typeValue, | ||
rootContainerName: 'setting', | ||
fullScreen: true, | ||
onChange: () => { | ||
this.hiddenTarget.value = this.guifier.getData(this.typeValue) | ||
this.hiddenTarget.dispatchEvent(new Event('change')) | ||
} | ||
} | ||
this.guifier = new Guifier(params); | ||
//find all the elements with guifierContainerCollapseButton class and click them | ||
var collapseButtons = this.containerTarget.querySelectorAll('.guifierContainerCollapseButton'); | ||
collapseButtons.forEach(function (button) { | ||
button.click(); | ||
}); | ||
} | ||
|
||
} | ||
if (!window.Controllers) { | ||
window.Controllers = {} | ||
} | ||
window.Controllers["guifier-control"] = GuifierController; |
Oops, something went wrong.