Skip to content

Commit c73294d

Browse files
author
Vitaliy Boyko
committed
Moved 1.0.0-develop
1 parent fae2563 commit c73294d

File tree

135 files changed

+18003
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+18003
-116
lines changed

build.gradle

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
plugins {
7+
id 'org.jetbrains.intellij' version '0.4.15'
8+
}
9+
10+
group 'com.magento.idea'
11+
version '1.0.0'
12+
13+
apply plugin: 'org.jetbrains.intellij'
14+
apply plugin: 'java'
15+
apply plugin: 'groovy'
16+
17+
def phpPluginVersion = System.getProperty("phpPluginVersion", "193.6494.35")
18+
def ideaVersion = System.getProperty("ideaVersion", "2019.3.3")
19+
def javaVersion = 1.8
20+
21+
sourceCompatibility = javaVersion
22+
targetCompatibility = javaVersion
23+
24+
intellij {
25+
version ideaVersion
26+
type 'IU'
27+
pluginName 'com.magento.idea.magento2plugin'
28+
plugins = ["com.jetbrains.php:$phpPluginVersion", 'yaml', 'java-i18n', 'properties', 'CSS', 'JavaScriptLanguage', 'com.intellij.lang.jsgraphql:2.3.0']
29+
updateSinceUntilBuild false
30+
sameSinceUntilBuild false
31+
downloadSources !Boolean.valueOf(System.getenv('CI'))
32+
sandboxDirectory "${project.rootDir}/.idea-sandbox"
33+
}
34+
35+
sourceSets {
36+
main.java.srcDirs = ['src']
37+
main.resources.srcDirs = ['resources']
38+
}

gradlew

Whitespace-only changes.

gradlew.bat

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
@if "%DEBUG%" == "" @echo off
2+
@rem ##########################################################################
3+
@rem
4+
@rem Gradle startup script for Windows
5+
@rem
6+
@rem ##########################################################################
7+
8+
@rem Set local scope for the variables with windows NT shell
9+
if "%OS%"=="Windows_NT" setlocal
10+
11+
set DIRNAME=%~dp0
12+
if "%DIRNAME%" == "" set DIRNAME=.
13+
set APP_BASE_NAME=%~n0
14+
set APP_HOME=%DIRNAME%
15+
16+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17+
set DEFAULT_JVM_OPTS="-Xmx64m"
18+
19+
@rem Find java.exe
20+
if defined JAVA_HOME goto findJavaFromJavaHome
21+
22+
set JAVA_EXE=java.exe
23+
%JAVA_EXE% -version >NUL 2>&1
24+
if "%ERRORLEVEL%" == "0" goto init
25+
26+
echo.
27+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28+
echo.
29+
echo Please set the JAVA_HOME variable in your environment to match the
30+
echo location of your Java installation.
31+
32+
goto fail
33+
34+
:findJavaFromJavaHome
35+
set JAVA_HOME=%JAVA_HOME:"=%
36+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37+
38+
if exist "%JAVA_EXE%" goto init
39+
40+
echo.
41+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42+
echo.
43+
echo Please set the JAVA_HOME variable in your environment to match the
44+
echo location of your Java installation.
45+
46+
goto fail
47+
48+
:init
49+
@rem Get command-line arguments, handling Windows variants
50+
51+
if not "%OS%" == "Windows_NT" goto win9xME_args
52+
53+
:win9xME_args
54+
@rem Slurp the command line arguments.
55+
set CMD_LINE_ARGS=
56+
set _SKIP=2
57+
58+
:win9xME_args_slurp
59+
if "x%~1" == "x" goto execute
60+
61+
set CMD_LINE_ARGS=%*
62+
63+
:execute
64+
@rem Setup the command line
65+
66+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67+
68+
@rem Execute Gradle
69+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70+
71+
:end
72+
@rem End local scope for the variables with windows NT shell
73+
if "%ERRORLEVEL%"=="0" goto mainEnd
74+
75+
:fail
76+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77+
rem the _cmd.exe /c_ return code!
78+
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79+
exit /b 1
80+
81+
:mainEnd
82+
if "%OS%"=="Windows_NT" endlocal
83+
84+
:omega

magento2plugin.iml

-21
This file was deleted.

resources/META-INF/withJsGraphQl.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<idea-plugin>
2+
<extensions defaultExtensionNs="com.intellij">
3+
<fileBasedIndex implementation="com.magento.idea.magento2plugin.stubs.indexes.graphql.GraphQlResolverIndex" />
4+
<codeInsight.lineMarkerProvider language="PHP" implementationClass="com.magento.idea.magento2plugin.php.linemarker.GraphQlResolverUsageLineMarkerProvider"/>
5+
<codeInsight.lineMarkerProvider language="GraphQL" implementationClass="com.magento.idea.magento2plugin.graphql.linemarker.GraphQlResolverClassLineMarkerProvider"/>
6+
</extensions>
7+
</idea-plugin>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#if (${TYPE})
2+
<type name="${TYPE}">
3+
#end
4+
<plugin name="${NAME}"
5+
type="${PLUGIN_TYPE}" sortOrder="${SORT_ORDER}" />
6+
#if (${TYPE})
7+
</type>
8+
#end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!--
2+
/*
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
<html>
8+
<body>
9+
</body>
10+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<preference for="${FOR}" type="${TYPE}" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!--
2+
/*
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
<html>
8+
<body>
9+
</body>
10+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
${PARAM_DOC}
3+
*/
4+
public function ${NAME}(${PARAM_LIST})
5+
{
6+
// TODO: Implement plugin method.
7+
#if (${RETURN_VARIABLES})return ${RETURN_VARIABLES}; #end
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
/*
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
<html>
8+
<body>
9+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
10+
<tr>
11+
<td><font face="verdana" size="-1">Magento runs all after methods following the completion of the observed method.
12+
Magento requires these methods have a return value and they must have the same name as the observed method with ‘after’ as the prefix.
13+
</font><br>
14+
</td>
15+
</tr>
16+
</table>
17+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
18+
<tr>
19+
<td colspan="3"><font face="verdana" size="-1">Predefined variables will take the following values:</font></td>
20+
</tr>
21+
<tr>
22+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PARAM_DOC}</b></font></nobr></td>
23+
<td width="10">&nbsp;</td>
24+
<td width="100%" valign="top"><font face="verdana" size="-1">PHP DocBlock for plugin function</font></td>
25+
</tr>
26+
<tr>
27+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${NAME}</b></font></nobr></td>
28+
<td width="10">&nbsp;</td>
29+
<td width="100%" valign="top"><font face="verdana" size="-1">Name of the plugin function</font></td>
30+
</tr>
31+
<tr>
32+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PARAM_LIST}</b></font></nobr></td>
33+
<td width="10">&nbsp;</td>
34+
<td width="100%" valign="top"><font face="verdana" size="-1">List of plugin function parameters</font></td>
35+
</tr>
36+
<tr>
37+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${RETURN_VARIABLES}</b></font></nobr></td>
38+
<td width="10">&nbsp;</td>
39+
<td width="100%" valign="top"><font face="verdana" size="-1">Return value for plugin function</font></td>
40+
</tr>
41+
</table>
42+
</body>
43+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
${PARAM_DOC}
3+
*/
4+
public function ${NAME}(${PARAM_LIST})
5+
{
6+
// TODO: Implement plugin method.
7+
return $proceed(#if(${RETURN_VARIABLES})${RETURN_VARIABLES}#end);
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
/*
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
<html>
8+
<body>
9+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
10+
<tr>
11+
<td><font face="verdana" size="-1">Magento runs the code in around methods before and after their observed methods.
12+
Using these methods allow you to override an observed method. Around methods must have the same name as the observed method with ‘around’ as the prefix.
13+
</font><br>
14+
</td>
15+
</tr>
16+
</table>
17+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
18+
<tr>
19+
<td colspan="3"><font face="verdana" size="-1">Predefined variables will take the following values:</font></td>
20+
</tr>
21+
<tr>
22+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PARAM_DOC}</b></font></nobr></td>
23+
<td width="10">&nbsp;</td>
24+
<td width="100%" valign="top"><font face="verdana" size="-1">PHP DocBlock for plugin function</font></td>
25+
</tr>
26+
<tr>
27+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${NAME}</b></font></nobr></td>
28+
<td width="10">&nbsp;</td>
29+
<td width="100%" valign="top"><font face="verdana" size="-1">Name of the plugin function</font></td>
30+
</tr>
31+
<tr>
32+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PARAM_LIST}</b></font></nobr></td>
33+
<td width="10">&nbsp;</td>
34+
<td width="100%" valign="top"><font face="verdana" size="-1">List of plugin function parameters</font></td>
35+
</tr>
36+
<tr>
37+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${RETURN_VARIABLES}</b></font></nobr></td>
38+
<td width="10">&nbsp;</td>
39+
<td width="100%" valign="top"><font face="verdana" size="-1">Return value for plugin function</font></td>
40+
</tr>
41+
</table>
42+
</body>
43+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
${PARAM_DOC}
3+
#if (${RETURN_VARIABLES})* @return array
4+
#end
5+
*/
6+
public function ${NAME}(${PARAM_LIST})
7+
{
8+
// TODO: Implement plugin method.
9+
#if (${RETURN_VARIABLES})return [${RETURN_VARIABLES}]; #end
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
/*
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
-->
7+
<html>
8+
<body>
9+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
10+
<tr>
11+
<td><font face="verdana" size="-1">Magento runs all before methods ahead of the call to an observed method.
12+
These methods must have the same name as the observed method with ‘before’ as the prefix.
13+
</font><br>
14+
</td>
15+
</tr>
16+
</table>
17+
<table width="100%" border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse">
18+
<tr>
19+
<td colspan="3"><font face="verdana" size="-1">Predefined variables will take the following values:</font></td>
20+
</tr>
21+
<tr>
22+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PARAM_DOC}</b></font></nobr></td>
23+
<td width="10">&nbsp;</td>
24+
<td width="100%" valign="top"><font face="verdana" size="-1">PHP DocBlock for plugin function</font></td>
25+
</tr>
26+
<tr>
27+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${NAME}</b></font></nobr></td>
28+
<td width="10">&nbsp;</td>
29+
<td width="100%" valign="top"><font face="verdana" size="-1">Name of the plugin function</font></td>
30+
</tr>
31+
<tr>
32+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${PARAM_LIST}</b></font></nobr></td>
33+
<td width="10">&nbsp;</td>
34+
<td width="100%" valign="top"><font face="verdana" size="-1">List of plugin function parameters</font></td>
35+
</tr>
36+
<tr>
37+
<td valign="top"><nobr><font face="verdana" size="-2"><b>${RETURN_VARIABLES}</b></font></nobr></td>
38+
<td width="10">&nbsp;</td>
39+
<td width="100%" valign="top"><font face="verdana" size="-1">Return value for plugin function</font></td>
40+
</tr>
41+
</table>
42+
</body>
43+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "${COMPOSER_PACKAGE_NAME}",
3+
"version": "${MODULE_VERSION}",
4+
"description": "${MODULE_DESCRIPTION}",
5+
"type": "magento2-module",
6+
#if (${DEPENDENCIES})
7+
"require": {
8+
${DEPENDENCIES}
9+
},
10+
#end
11+
#if (${LICENSE})
12+
${LICENSE},
13+
#end
14+
"autoload": {
15+
"files": [
16+
"registration.php"
17+
],
18+
"psr-4": {
19+
"${PACKAGE}\\\\${MODULE_NAME}\\": ""
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)