Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafauysal committed Apr 23, 2024
0 parents commit b421828
Show file tree
Hide file tree
Showing 56 changed files with 24,420 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# A set of files you probably don't want in your WordPress.org distribution
.distignore
.editorconfig
.git
.gitignore
.gitlab-ci.yml
.travis.yml
.DS_Store
.browserslistrc
.eslintrc.json
.eslintignore
.npmrc
.nvmrc
.stylelintrc
.husky
babel.config.js
Thumbs.db
behat.yml
bin
circle.yml
composer.json
composer.lock
Gruntfile.js
package.json
package-lock.json
phpunit.xml
phpunit.xml.dist
multisite.xml
multisite.xml.dist
phpcs.ruleset.xml
phpcs.xml
README.md
wp-cli.local.yml
tests
node_modules
*.zip
*.tar.gz
tests
config
postcss.config.js
yarn.lock
.wordpress-org
.github
LICENSE.md
docs-built
.husky
.lintstagedrc.json
lerna.json
hookdoc-conf.json
dist/js/*.LICENSE.txt
vendor
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[{*.json,*.yml,.babelrc,.bowerrc,.browserslistrc,.postcssrc}]
indent_style = space
indent_size = 2

[*.txt,wp-config-sample.php]
end_of_line = crlf
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
assets/js/vendor
assets/js/admin/vendor
assets/js/frontend/vendor
assets/js/shared/vendor
webpack.config.babel.js
tests
17 changes: 17 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"rules": {},
"globals": {
"module": true,
"process": true,
"jquery": true,
"wp": true,
"ajaxurl": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest"
},
"env": {
"es6": true
}
}
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
node_modules
bower_components
release
vendor
.idea
*.log

# Project Files


# Editors
*.esproj
*.tmproj
*.tmproject
tmtags
.*.sw[a-z]
*.un~
Session.vim
*.swp

# Mac OSX
.DS_Store
._*
.Spotlight-V100
.Trashes

# Windows
Thumbs.db
Desktop.ini
*.js.map
*.css.map
Binary file added .wordpress-org/banner-1544x500.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/banner-772x250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/icon-128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/icon-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions .wordpress-org/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .wordpress-org/screenshot-2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Easy Text-to-Speech
=============

Easy Text-to-Speech is a powerful, user-friendly WordPress plugin designed to transform your textual content into high-quality synthesized speech.

Documentation: [https://handyplugins.co/easy-text-to-speech/docs/](https://handyplugins.co/easy-text-to-speech/docs/)

## Setup

1. Upload the entire `/easy-text-to-speech` directory to the `/wp-content/plugins/` directory.
2. Activate Easy Text to Speech through the 'Plugins' menu in WordPress.
3. Enjoy!

## Credits

We have used code or ideas from the following projects:

* [10up Toolkit](https://github.com/10up/10up-toolkit) for building tools.
* [Shared UI](https://github.com/wpmudev/shared-ui) for admin UI.
8 changes: 8 additions & 0 deletions assets/css/admin/admin-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* EasyTTS - Admin Styles
*/
@import url("@wpmudev/shared-ui/dist/css/shared-ui.css");

.sui-modal{
z-index:9999!important;
}
Binary file added assets/fonts/wpmudev-plugin-icons.eot
Binary file not shown.
190 changes: 190 additions & 0 deletions assets/fonts/wpmudev-plugin-icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/fonts/wpmudev-plugin-icons.ttf
Binary file not shown.
Binary file added assets/fonts/wpmudev-plugin-icons.woff
Binary file not shown.
Binary file added assets/fonts/wpmudev-plugin-icons.woff2
Binary file not shown.
1 change: 1 addition & 0 deletions assets/images/voice-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions assets/js/admin/admin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* global jQuery */
import '../../css/admin/admin-style.css';
import '@wpmudev/shared-ui/dist/js/_src/modal-dialog';
import {noticeTemplate} from './utils';

(function ($) {

$('input[name="tts_provider"]').on('change', function () {
$('.tts-provider-settings').hide();
$('#' + $(this).val() + '-details').show();
});

$('#aws_polly_region').on('change',function(e){
e.preventDefault();
populate_voice_selection();
});

$('.aws_polly_engine').on('change',function(e){
e.preventDefault();
populate_voice_selection();
});

function populate_voice_selection(){
const $errContainer = $('#aws_polly_default_voice_desc');

$.post(
ajaxurl,
{
beforeSend() {
jQuery('#aws_polly_default_voice').attr('disabled', 'disabled');
$errContainer.html('');
},
action: 'easytts_voice_list',
nonce : EasyTTSAdmin.nonce,
data: $('#easytts_settings_form').serialize()
},
function (response) {
if(response.success){
$('#aws_polly_default_voice').html(response.data.html);
}else{
const err = noticeTemplate(response.data.message, 'error');
$errContainer.html(err);
}
},
).done(function () {
jQuery('#aws_polly_default_voice').attr('disabled', false);
});
}



})(jQuery);
Loading

0 comments on commit b421828

Please sign in to comment.