Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*
* @author Paola De Bartolo / Flowing Code
*/
@NpmPackage(value = "sharee", version = "1.1.20")
@NpmPackage(value = "sharee", version = "1.1.23")
@JsModule("./src/fc-sharee-connector.js")
@CssImport("./styles/fc-share-easy/style.css")
class BaseShareEasy<T extends BaseShareEasy<T>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ window.fcShareeConnector = {
this.getName = () => {
return driverOptions.name;
}
this.hasLink = () => !!driverOptions.link;
};

Object.defineProperty(f, 'name', { value: name });
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand Down Expand Up @@ -46,8 +46,8 @@ public SpecialCustomizationsDemo() {
NormalShareEasy.create().withDrivers(Driver.WHATSAPP, Driver.TWITTER,
Driver.TELEGRAM, Driver.LINKEDIN, Driver.FACEBOOK, Driver.COPY).forComponent(normalDiv1);
// #if vaadin eq 0
Div example1 = createContainerDivWithInfo("Default drivers with different order", normalDiv1,
"Use 'withDrivers' method to list the default drivers in the wanted order");
Div example1 = createContainerDivWithInfo("Default drivers with different order", normalDiv1,
"Use 'withDrivers' method to list the default drivers in the wanted order");
SourceCodeViewer.highlightOnHover(example1, "example1");
add(example1);
addSeparator();
Expand All @@ -58,40 +58,22 @@ public SpecialCustomizationsDemo() {
// begin-block example2
Div normalDiv2 = new Div();
Map<String, CustomDriverOptions> customDrivers2 = new HashMap<>();
NewTwitterDriverOptions newTwitterDriver = new NewTwitterDriverOptions();
customDrivers2.put("X", newTwitterDriver);
TrelloDriverOptions trelloDriver = new TrelloDriverOptions();
customDrivers2.put("trello", trelloDriver);
NormalShareEasy
.create().withCustomDrivers(customDrivers2).withDrivers(Driver.COPY,
Driver.TELEGRAM, Driver.FACEBOOK, Driver.WHATSAPP, newTwitterDriver, Driver.LINKEDIN)
Driver.TELEGRAM, Driver.FACEBOOK, trelloDriver, Driver.WHATSAPP, Driver.LINKEDIN)
.forComponent(normalDiv2);
// #if vaadin eq 0
Div example2 = createContainerDivWithInfo("Custom driver definition to replace old Twitter option with new X option",
Div example2 = createContainerDivWithInfo("Custom driver definition",
normalDiv2,
"Use 'witCustomDrivers' method to add the new custom driver for X and then call 'withDrivers' to list the drivers in the wanted order.");
"Use 'withCustomDrivers' method to add the new custom drivers and then call 'withDrivers' to list the wanted drivers in the wanted order.");
SourceCodeViewer.highlightOnHover(example2, "example2");
add(example2);
addSeparator();
// #endif
// show-source add(normalDiv2);
// end-block

// begin-block example3
Div normalDiv3 = new Div();
Map<String, CustomDriverOptions> customDrivers3 = new HashMap<>();
NewTwitterDriverOptions xDriver = new NewTwitterDriverOptions();
customDrivers3.put("X", xDriver);
TrelloDriverOptions trelloDriver = new TrelloDriverOptions();
customDrivers3.put("trello", trelloDriver);
NormalShareEasy.create().withCustomDrivers(customDrivers3)
.withDrivers(trelloDriver, xDriver).forComponent(normalDiv3);
// #if vaadin eq 0
Div example3 = createContainerDivWithInfo("Custom drivers only", normalDiv3,
"Use 'witCustomDrivers' method to add the new custom drivers and then call 'withDrivers' to list the wanted drivers in the wanted order.");
SourceCodeViewer.highlightOnHover(example3, "example3");
add(example3);
// #endif
// show-source add(normalDiv3);
// end-block
}

}