-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Káio Simonassi
committed
Nov 12, 2024
0 parents
commit e7fed9c
Showing
46 changed files
with
1,746 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
### Enonic CLI ### | ||
.enonic | ||
|
||
### OSX ### | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear in the root of a volume | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
### Gradle ### | ||
.gradle | ||
build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
### WebStorm ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm | ||
|
||
*.iml | ||
|
||
## Directory-based project format: | ||
.idea/ | ||
# if you remove the above rule, at least ignore the following: | ||
|
||
# User-specific stuff: | ||
# .idea/workspace.xml | ||
# .idea/tasks.xml | ||
# .idea/dictionaries | ||
|
||
# Sensitive or high-churn files: | ||
# .idea/dataSources.ids | ||
# .idea/dataSources.xml | ||
# .idea/sqlDataSources.xml | ||
# .idea/dynamic.xml | ||
# .idea/uiDesigner.xml | ||
|
||
# Gradle: | ||
# .idea/gradle.xml | ||
# .idea/libraries | ||
|
||
# Mongo Explorer plugin: | ||
# .idea/mongoSettings.xml | ||
|
||
## File-based project format: | ||
*.ipr | ||
*.iws | ||
|
||
## Plugin-specific files: | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
|
||
### Sass ### | ||
.sass-cache | ||
*.css.map |
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 @@ | ||
Enonic License, version 1.0 | ||
|
||
Acceptance | ||
By using the software, YOU agree to all of the terms and conditions below. | ||
|
||
License grants | ||
The LICENSOR grants YOU a worldwide, royalty-free, non-exclusive, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, subject to the limitations and conditions below. | ||
|
||
Limitations | ||
YOU may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software. YOU may not move, change, disable, or circumvent the license key functionality in the software, and YOU may not remove or obscure any functionality in the software that is protected by the license key. YOU may not alter, remove, or obscure any licensing, copyright, or other notices of the LICENSOR in the software. Any use of the LICENSOR’s TRADEMARKS is subject to applicable law. | ||
|
||
Patents | ||
The LICENSOR grants YOU a license to the software, under any patent claims the LICENSOR can license, becomes able to license, can make, have made, use, sell, offer for sale, import, or have imported, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that YOU cause to be infringed by modifications or additions to the software. If YOU or YOUR COMPANY make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If YOUR COMPANY makes such a claim, your patent license ends immediately for work on behalf of YOUR COMPANY. | ||
|
||
No Liability | ||
As far as the law allows, the software comes as is, without any warranty or condition, and the LICENSOR will not be liable to YOU for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim. | ||
|
||
No Other Rights | ||
These terms do not imply any licenses other than those expressly granted in these terms. | ||
|
||
Termination | ||
If YOU use the software in violation of these terms, such use is not licensed, and YOUR LICENSES will automatically terminate. If the LICENSOR provides YOU with a notice of your violation, and YOU cease all violation of this license no later than 30 days after YOU receive that notice, YOUR LICENSES will be reinstated retroactively. However, if YOU violate these terms after such reinstatement, any additional violation of these terms will cause YOUR LICENSES to terminate automatically and permanently. | ||
|
||
Notices | ||
YOU must ensure that anyone who gets a copy of any part of the software from YOU also gets a copy of these terms. If YOU modify the software, YOU must include in any modified copies of the software prominent notices stating that YOU have modified the software. | ||
|
||
Definitions | ||
LICENSOR is the entity offering these terms, and the software is the software, or any portion of it, the LICENSOR makes available under these terms. | ||
YOU refers to the individual or entity agreeing to these terms. | ||
YOUR COMPANY is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect. | ||
YOUR LICENSES are all the licenses granted to you for the software under these terms. | ||
USE means anything you do with the software requiring one of YOUR LICENSES. | ||
TRADEMARKS means trademarks, service marks, and similar rights. |
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,62 @@ | ||
# ImageShop Integration Widget | ||
|
||
This repository contains an application designed to facilitate the integration of Enonic XP-based sites with the ImageShop platform. The application includes features for efficiently importing, editing, and synchronizing images between the site and the ImageShop media library. | ||
|
||
## Key Features | ||
|
||
- **Installation check**: Automatically detects if the ImageShop app is installed on configured sites. | ||
- **Image import**: Enables importing images directly from ImageShop into the site environment. | ||
- **Information synchronization**: Displays a synchronization button to update information for already imported images. | ||
- **Informative error messages**: Provides visual feedback in case of installation issues, misconfiguration, or detection of multiple installations. | ||
- **Thymeleaf template integration**: Renders the user interface using Thymeleaf templates for consistent presentation. | ||
|
||
## How It Works | ||
|
||
The application handles HTTP requests and performs the following checks and actions: | ||
1. Checks whether ImageShop is installed on the current site. | ||
2. Retrieves content based on the `contentId` provided in the request. | ||
3. Validates the app configuration and returns appropriate error messages if any issues are found. | ||
4. Constructs a model with service URLs, translation strings, and control variables for the user interface. | ||
5. Renders the interface using the `iimage.html` template, which includes import and sync buttons. | ||
|
||
This application is ideal for development teams looking to integrate ImageShop seamlessly and effectively into their Enonic XP-based projects. | ||
|
||
## Setup | ||
### Building | ||
|
||
```bash | ||
git clone https://github.com/99x/imageshop-xp.git | ||
cd imageshop-xp | ||
./gradlew build | ||
``` | ||
|
||
### Installation | ||
|
||
1. **Install the application**: Deploy the `ImageShop` in your Enonic XP environment via Enonic market in the applications tool or build it yourself. | ||
2. **Configure the application on your site**: | ||
- Ensure that the application is set up in your site structure. | ||
- In the site configuration, you will need to fill in the following inputs: | ||
|
||
- **Imported resources folder** | ||
- **Host** | ||
- **Token** | ||
- **Private Key** | ||
- **Interface Name** (optional, used when searching images) | ||
- **Document Prefix** (optional, used as a prefix for uploaded images) | ||
- **Sizes** (optional, format example: `Normal 320x240;320x240`) | ||
- **Language** (optional, default language for image searches) | ||
|
||
These inputs ensure the proper configuration and functionality of the ImageShop integration in your site. | ||
|
||
|
||
|
||
## Releases and Compatibility | ||
|
||
| Version | XP version | | ||
| ------- | ------------ | | ||
| 1.0.x | 7.9.0 | | ||
|
||
## License and credits | ||
The application is licensed under the [Enonic License](https://github.com/99x/imageshop-xp/LICENSE.txt) | ||
|
||
Made by [99x](https://99x.io) |
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,41 @@ | ||
plugins { | ||
id 'com.enonic.xp.app' version '3.4.0' | ||
} | ||
|
||
app { | ||
name = "${appName}" | ||
displayName = "${appDisplayName}" | ||
vendorName = "${vendorName}" | ||
vendorUrl = "${vendorUrl}" | ||
systemVersion = "${xpVersion}" | ||
keepArchiveFileName = true | ||
} | ||
|
||
dependencies { | ||
implementation "com.enonic.xp:core-api:${xpVersion}" | ||
implementation "com.enonic.xp:portal-api:${xpVersion}" | ||
include "com.enonic.xp:lib-content:${xpVersion}" | ||
include "com.enonic.xp:lib-portal:${xpVersion}" | ||
include "com.enonic.xp:lib-io:${xpVersion}" | ||
include "com.enonic.xp:lib-i18n:${xpVersion}" | ||
include "com.enonic.xp:lib-common:${xpVersion}" | ||
include "com.enonic.xp:lib-repo:${xpVersion}" | ||
include "com.enonic.xp:lib-task:${xpVersion}" | ||
include "com.enonic.xp:lib-node:${xpVersion}" | ||
include "com.enonic.xp:lib-context:${xpVersion}" | ||
include "com.enonic.lib:lib-thymeleaf:2.1.0" | ||
include 'com.enonic.lib:lib-http-client:3.2.2' | ||
include "com.enonic.lib:lib-cron:1.1.2" | ||
|
||
include "org.json:json:20200518" | ||
} | ||
|
||
tasks.register('dev', Exec) { | ||
commandLine './gradlew', 'deploy', '-t' | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
xp.enonicRepo() | ||
} |
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,13 @@ | ||
# Gradle Project settings | ||
projectName = imageshop | ||
version = 1.0.0 | ||
|
||
# XP App values | ||
appDisplayName = ImageShop | ||
appName = io.99x.imageshop | ||
vendorName = 99x | ||
vendorUrl = https://99x.io | ||
xpVersion = 7.9.2 | ||
|
||
# Settings for publishing to a Maven repo | ||
group = io.99x.imageshop |
Binary file not shown.
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,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.