Skip to content

Commit af9567d

Browse files
committed
Moved PHP code from Hyve Pro
1 parent f688260 commit af9567d

Some content is hidden

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

58 files changed

+34945
-0
lines changed

.browserslintrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Browsers that we support
2+
3+
last 1 version
4+
> 1%
5+
not ie > 0
6+
not ie_mob > 0
7+
not dead

.distignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.git
2+
.distignore
3+
.gitignore
4+
.travis.yml
5+
.jshintrc
6+
Gruntfile.js
7+
phpcs.xml
8+
.eslintrc
9+
.gitattributes
10+
.releaserc.yml
11+
.DS_Store
12+
.editorconfig
13+
.browserslistrc
14+
postcss.config.js
15+
docker-compose.yml
16+
webpack.config.js
17+
CONTRIBUTING.md
18+
package.json
19+
composer.json
20+
composer.lock
21+
package-lock.json
22+
themeisle-hash.json
23+
npm-debug.log
24+
phpstan.neon
25+
tailwind.config.js
26+
/grunt
27+
/node_modules
28+
/logs
29+
/.github
30+
/.wordpress-org
31+
/.idea
32+
/src
33+
/bin
34+
/tests
35+
/phpunit.xml
36+
/dist
37+
/artifact

.editorconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = tab
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2
17+
18+
[*.md]
19+
trim_trailing_whitespace = false

.eslintrc

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": "wordpress",
7+
"parserOptions": {
8+
"ecmaFeatures": {
9+
"jsx": true
10+
},
11+
"ecmaVersion": 2021,
12+
"sourceType": "module"
13+
},
14+
"ignorePatterns": [ "node_modules", "assets" ],
15+
"rules": {
16+
"indent": [
17+
"error",
18+
"tab"
19+
],
20+
"linebreak-style": [
21+
"error",
22+
"unix"
23+
],
24+
"quotes": [
25+
"error",
26+
"single"
27+
],
28+
"semi": [
29+
"error",
30+
"always"
31+
],
32+
"prefer-destructuring": [
33+
"warn",
34+
{
35+
"array": false,
36+
"object": true
37+
},
38+
{
39+
"enforceForRenamedProperties": false
40+
}
41+
],
42+
"array-bracket-spacing": [
43+
"warn",
44+
"always",
45+
{
46+
"arraysInArrays": false,
47+
"objectsInArrays": false
48+
}
49+
],
50+
"key-spacing": [
51+
"warn",
52+
{
53+
"beforeColon": false,
54+
"afterColon": true
55+
}
56+
],
57+
"object-curly-spacing": [
58+
"warn",
59+
"always",
60+
{
61+
"arraysInObjects": true,
62+
"objectsInObjects": false
63+
}
64+
],
65+
}
66+
}

.gitattributes

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.gitattributes export-ignore
2+
.gitignore export-ignore
3+
.travis.yml export-ignore
4+
Gruntfile.js export-ignore
5+
sample-theme export-ignore
6+
docker-compose.yml export-ignore
7+
.releaserc.json export-ignore
8+
composer.json export-ignore
9+
composer.lock export-ignore
10+
.nvmrc export-ignore
11+
package.json export-ignore
12+
package-lock.json export-ignore
13+
phpcs.xml export-ignore
14+
phpunit.xml export-ignore
15+
README.md export-ignore
16+
tests export-ignore
17+
bin export-ignore
18+
README.md export-ignore
19+
# Set the default behavior for all files.
20+
* text=auto
21+
22+
# Normalized and converts to
23+
# native line endings on checkout.
24+
*.php text
25+
26+
# Convert to LF line endings on checkout.
27+
*.sh text eol=lf
28+
29+
# Binary files.
30+
*.png binary
31+
*.jpg binary

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.idea
2+
node_modules
3+
logs
4+
dist
5+
build
6+
artifact
7+
vendor
8+
.DS_Store
9+
.vscode
10+
todo.md
11+
artifacts
12+
*.results.json
13+
.phpunit.result.cache
14+
.fleet

.releaserc.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
branches:
3+
- main
4+
plugins:
5+
- - "@semantic-release/commit-analyzer"
6+
- preset: simple-preset
7+
releaseRules: conventional-changelog-simple-preset/release-rules
8+
- - "@semantic-release/changelog"
9+
- changelogFile: CHANGELOG.md
10+
- - "@semantic-release/release-notes-generator"
11+
- preset: simple-preset
12+
- - "@semantic-release/exec"
13+
- prepareCmd: "replace-in-file \"== Changelog ==\" \"== Changelog ==\n\n${nextRelease.notes}\" readme.txt"
14+
- - "@semantic-release/exec"
15+
- prepareCmd: grunt version::${nextRelease.version}
16+
- - "semantic-release-slack-bot"
17+
- notifyOnSuccess: false
18+
notifyOnFail: false
19+
markdownReleaseNotes: true
20+
branchesConfig:
21+
- pattern: main
22+
notifyOnSuccess: true
23+
notifyOnFail: false
24+
- - "@semantic-release/git"
25+
- assets:
26+
- CHANGELOG.md
27+
- composer.json
28+
- package-lock.json
29+
- readme.txt
30+
- README.md
31+
- hyve-lite.php
32+
- package.json
33+
message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
34+
- - "@semantic-release/github"

Gruntfile.js

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/* eslint-disable camelcase */
2+
/* jshint node:true */
3+
/* global require */
4+
5+
module.exports = function( grunt ) {
6+
grunt.loadNpmTasks( 'grunt-version' );
7+
grunt.initConfig(
8+
{
9+
version: {
10+
project: {
11+
src: [
12+
'package.json'
13+
]
14+
},
15+
composer: {
16+
src: [
17+
'composer.json'
18+
]
19+
},
20+
metatag: {
21+
options: {
22+
prefix: 'Version:\\s*',
23+
flags: ''
24+
},
25+
src: [ 'hyve-lite.php' ]
26+
},
27+
php: {
28+
options: {
29+
prefix: 'HYVE_LITE_VERSION\', \'',
30+
flags: ''
31+
},
32+
src: [ 'hyve-lite.php' ]
33+
}
34+
}
35+
}
36+
);
37+
};

assets/audio/click.mp3

5.94 KB
Binary file not shown.

assets/audio/ping.mp3

1.93 KB
Binary file not shown.

composer.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "codeinwp/hyve-lite",
3+
"description": "An AI support bot.",
4+
"version": "1.1.0",
5+
"type": "wordpress-plugin",
6+
"license": "GPL-V3",
7+
"autoload": {
8+
"psr-4": {
9+
"ThemeIsle\\HyveLite\\": "inc/"
10+
},
11+
"files": [
12+
"vendor/codeinwp/themeisle-sdk/load.php"
13+
]
14+
},
15+
"authors": [
16+
{
17+
"name": "ThemeIsle Team",
18+
"email": "[email protected]"
19+
},
20+
{
21+
"name": "Hardeep Asrani",
22+
"email": "[email protected]"
23+
}
24+
],
25+
"scripts": {
26+
"lint": "phpcs --standard=phpcs.xml",
27+
"format": "phpcbf --standard=phpcs.xml",
28+
"phpstan": "phpstan analyse --memory-limit 2G"
29+
},
30+
"require-dev": {
31+
"phpstan/phpstan": "^1.10",
32+
"szepeviktor/phpstan-wordpress": "^1.3",
33+
"wp-coding-standards/wpcs": "^3.0",
34+
"automattic/vipwpcs": "^3.0",
35+
"phpcompatibility/php-compatibility": "^9.3"
36+
},
37+
"config": {
38+
"allow-plugins": {
39+
"dealerdirect/phpcodesniffer-composer-installer": true
40+
}
41+
},
42+
"require": {
43+
"codeinwp/themeisle-sdk": "^3.3"
44+
}
45+
}

0 commit comments

Comments
 (0)