Skip to content

Commit

Permalink
Task: use npm instead of bower / added data-button-style atrribute / …
Browse files Browse the repository at this point in the history
…fusion cleanup (#19)
  • Loading branch information
esdete2 authored and monofone committed Dec 10, 2018
1 parent 49447a3 commit 63da844
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 35 deletions.
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
!/Resources/Public/shariff/build/*
/Packages
/composer.lock
/vendor
/vendor
/node_modules
1 change: 1 addition & 0 deletions Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Networkteam:
Shariff:
frontend:
theme: standard
buttonStyle: standard
orientation: horizontal
language: en
options:
Expand Down
18 changes: 8 additions & 10 deletions Resources/Private/Fusion/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ prototype(Neos.Neos:Page) {

prototype(Networkteam.Neos.Shariff:Shariff) < prototype(Neos.Fusion:Tag) {
// API
services = ${Configuration.setting('Networkteam.Neos.Shariff.options.services')}
theme = ${Configuration.setting('Networkteam.Neos.Shariff.frontend.theme')}
orientation = ${Configuration.setting('Networkteam.Neos.Shariff.frontend.orientation')}
language = ${Configuration.setting('Networkteam.Neos.Shariff.frontend.language')}
@context {
services = ${Configuration.setting('Networkteam.Neos.Shariff.options.services')}
theme = ${Configuration.setting('Networkteam.Neos.Shariff.frontend.theme')}
buttonStyle = ${Configuration.setting('Networkteam.Neos.Shariff.frontend.buttonStyle')}
orientation = ${Configuration.setting('Networkteam.Neos.Shariff.frontend.orientation')}
language = ${Configuration.setting('Networkteam.Neos.Shariff.frontend.language')}
}

attributes {
class = 'shariff'
Expand All @@ -37,18 +40,13 @@ prototype(Networkteam.Neos.Shariff:Shariff) < prototype(Neos.Fusion:Tag) {
}
data-services = ${String.toLowerCase(Json.stringify(services))}
data-theme = ${theme}
data-button-style = ${buttonStyle}
data-orientation = ${orientation}
data-lang = ${language}

// Put additional attributes here, see https://github.com/heiseonline/shariff#options-data-attributes
}

// Internal
@context.services = ${this.services}
@context.theme = ${this.theme}
@context.orientation = ${this.orientation}
@context.language = ${this.language}

@process.contentElementWrapping = Neos.Neos:ContentElementWrapping
@exceptionHandler = 'Neos\\Neos\\Fusion\\ExceptionHandlers\\NodeWrappingHandler'
}
10 changes: 5 additions & 5 deletions Resources/Public/shariff/build/shariff.complete.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Resources/Public/shariff/build/shariff.complete.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Resources/Public/shariff/build/shariff.min.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Resources/Public/shariff/build/shariff.min.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions bower.json

This file was deleted.

22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "networkteam.neos.shariff",
"version": "1.0.0",
"description": "Social plugins are on every page today, but if you have concerns about privacy of your visitors it is not that easy to integrate them. The german publisher Heise created a general solution that allows to show the counts for each share while preserving the privacy of website visitory. This is accomplished by using the server of the website as proxy for the visitors. http://ct.de/-2467514",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/networkteam/Networkteam.Neos.Shariff.git"
},
"author": "networkteam GmbH",
"license": "ISC",
"bugs": {
"url": "https://github.com/networkteam/Networkteam.Neos.Shariff/issues"
},
"homepage": "https://github.com/networkteam/Networkteam.Neos.Shariff#readme",
"dependencies": {
"shariff": "^3.0.1"
}
}

0 comments on commit 63da844

Please sign in to comment.