Skip to content

Commit

Permalink
Merge pull request #312 from addonify/development
Browse files Browse the repository at this point in the history
Major release 2.0.0
  • Loading branch information
Asok17 committed Apr 26, 2023
2 parents 01e6bd6 + a06b97c commit f10ce65
Show file tree
Hide file tree
Showing 243 changed files with 22,012 additions and 28,188 deletions.
1 change: 0 additions & 1 deletion .babelrc

This file was deleted.

8 changes: 7 additions & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,10 @@ package.json
package-lock.json
sftp-config.json
composer.json
composer.lock
composer.lock
auto-imports.d.ts
components.d.ts
.editorconfig
vite.config.js
tsconfig.json
postcss.config.cjs
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

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

[*.md]
trim_trailing_whitespace = false
32 changes: 27 additions & 5 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

Contributors: addonify
Tags: wishlist, woocommerce wishlist, product wishlist, woocommerce, ecommerce, e-commerce
Requires at least: 5.6
Tested up to: 6.1.1
Stable tag: 1.1.3
Requires at least: 5.9
Tested up to: 6.2
Stable tag: 2.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -128,10 +129,31 @@ You can use this `[addonify_wishlist]` shortcode to display the wishlist table i

== Changelog ==

= 2.0.0 - 26 April, 2023 =

- Added: Wishlist database table creation on plugin activate.
- Added: Option to generate wishlist page in tools tab.
- Added: `Save For Later` button for cart items in cart page.
- Added: Notice in the admin dashboard to get feedback from user.
- Update: Redesign of plugin setting page.
- Update: User's wishlist data migration for the compatibility with older version of the plugin.
- Update: Different JS files are loaded for logged in and guest users.
- Update: Product removal notice will not hide automatically, if value for the option, `Undo notice timeout (in seconds)`, is set to 0.
- Removed: Option `Ajaxify Remove from Wishlist Action`.
- Removed: Option `Save Wishlist Cookie for [x] days`.
- Removed: Option `Enable Styles from Plugin`.

= 1.1.3 - 03 March, 2023 =

- Updated: UDP agent version.
- Updated: POT file.
- Updated : UDP updated.
- Added : Shortcode for 'add-to-wishist' button.
- Updated: Undo remove from wishlist action. Add undo notice timeout time option, action text, and undo link label.
- Updated: For 0 value of the setting, Save Wishlist Cookie for [x] days, wishlist data remains forever.
- Added: Option for icon position on Add to Wishlist button.
- Added: Text option for empty wishlist in wishlist sidebar and wishlist page.
- Removed: Footer notification for removed product in wishlist sidebar.
- Added: Spinner when performing undo removed item.
- Added: Stock status in each product in wishlist sidebar.

= 1.1.2 - 22 February , 2023 =

Expand Down
14 changes: 12 additions & 2 deletions addonify-wishlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
* Plugin Name: Addonify WooCommerce Wishlist
* Plugin URI: https://wordpress.org/plugins/addonify-wishlist
* Description: Addonify WooCommerce Wishlist is a light-weight yet powerful tool that adds a wishlist functionality to your e-commerce shop.
* Version: 1.1.3
* Version: 2.0.0
* Requires at least: 5.9
* Requires PHP: 7.4
* Author: Addonify
* Author URI: https://www.addonify.com
* License: GPL-2.0+
Expand All @@ -24,9 +26,10 @@
die;
}

define( 'ADDONIFY_WISHLIST_VERSION', '1.1.3' );
define( 'ADDONIFY_WISHLIST_VERSION', '2.0.0' );
define( 'ADDONIFY_WISHLIST_DB_INITIALS', 'addonify_wishlist_' );
define( 'ADDONIFY_WISHLIST_PLUGIN_PATH', dirname( __FILE__ ) );
define( 'ADDONIFY_WISHLIST_PLUGIN_FILE', __FILE__ );

/**
* The code that runs during plugin activation.
Expand All @@ -53,6 +56,13 @@ function deactivate_addonify_wishlist() {
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-addonify-wishlist.php';

/**
* The code that runs during plugin bootstrap.
*/
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
require_once plugin_dir_path( __FILE__ ) . 'admin/app.php';


/**
* Begins execution of the plugin.
*
Expand Down
51 changes: 51 additions & 0 deletions admin/app.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?php
/**
*
* Check if the current page is udp engine page.
*
* @package Addonify_Wishlist
* @since 1.0.1
*/

use Kucrut\Vite;


/**
*
* Enqueue admin scripts if the current page is addonify wishlist page.
*
* @since 2.0.0
*/

if ( isset( $_GET['page'] ) && 'addonify_wishlist' === $_GET['page'] ) { //phpcs:ignore
$handle = 'addonify-wishlist-admin';
add_action(
'admin_enqueue_scripts',
function () use ( $handle ): void {
Vite\enqueue_asset(
dirname( __FILE__ ) . '/app/dist',
'admin/app/src/main.js',
array(
'handle' => $handle,
'dependencies' => array('lodash', 'wp-api-fetch', 'wp-i18n'), // Dependencies.
'css-dependencies' => array(), // Optional style dependencies. Defaults to empty array.
'css-media' => 'all', // Optional.
'css-only' => false, // Optional. Set to true to only load style assets in production mode.
'in-footer' => true, // Optional. Defaults to false.
)
);

wp_localize_script(
$handle,
'addonify_wishlist_localizer',
array(
'admin_url' => admin_url( '/' ),
'ajax_url' => admin_url( 'admin-ajax.php' ),
'site_url' => site_url( '/' ),
'rest_namespace' => 'addonify_wishlist_options_api/v2',
'version_number' => ADDONIFY_WISHLIST_VERSION,
)
);
}
);
}
1 change: 1 addition & 0 deletions admin/app/dist/assets/main-30250822.css

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions admin/app/dist/assets/main-cf0e48b7.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions admin/app/dist/assets/main-cf0e48b7.js.map

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions admin/app/dist/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"admin/app/src/main.css": {
"file": "assets/main-30250822.css",
"src": "admin/app/src/main.css"
},
"admin/app/src/main.js": {
"css": [
"assets/main-30250822.css"
],
"file": "assets/main-cf0e48b7.js",
"isEntry": true,
"src": "admin/app/src/main.js"
}
}
File renamed without changes.
1 change: 1 addition & 0 deletions admin/app/fonts/icon.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions admin/app/src/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<script setup>
import { onMounted } from "vue";
import Header from "@layouts/Header.vue";
import Footer from "@layouts/Footer.vue";
</script>
<template>
<Header />
<section id="addonify-container">
<router-view></router-view>
</section>
<Footer />
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,9 @@
Mixin: Transitions
-------------------------------------------------------------------------- */

@mixin transation_delay() {
@mixin transition_delay($delay: 0.5s) {

transition: all 0.5s ease;
}

@mixin transation_delay_dymanic($value) {

transition: all $value ease;
transition: all $delay ease;
}

/* --------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,34 @@
-------------------------------------------------------------------------- */

// Base colors
--addonify_primary_color: #0286e7;
--addonify_seconary_color: #00b32a;
--addonify_base_text_color: #585858;
--addonify_primary_color: #0286E7;
--addonify_secondary_color: #2BC48A;
--addonify_ternary_color: #FF4949;
--addonify_base_text_color: #3C434A;
--addonify_base_ternary_text_color: #444444;
--addonify_base_link_color: #0366E0; // default link color
--addonify_base_link_hover_color: var(--addonify_seconary_color);
--addonify_border_color: #d5d5d5;
--addonify_base_link_hover_color: var(--addonify_secondary_color);
--addonify_border_color: #D5D5D5;

// Buttons
--addonify_button_text_color: white;
--addonify_button_background_color: #0286e7;
--addonify_button_hover_text_color: white;
--addonify_button_hover_background_color: #00b32a;
--addonify_button_text_color: #FFFFFF;
--addonify_button_background_color: #0286E7;
--addonify_button_hover_text_color: #FFFFFF;
--addonify_button_hover_background_color: var(--addonify_secondary_color);
--addonify_button_border_color: transparent;
--addonify_button_hover_border_color: transparent;
--addonify_button_border_width: 0;
--addonify_button_border_style: solid;

--addonify_text_button_color: var(--addonify_primary_color);
--addonify_text_button_hover_color: var(--addonify_seconary_color);
--addonify_text_button_underline_color: var(--addonify_primary_color);
--addonify_text_button_hover_underline_color: var(--addonify_seconary_color);
--addonify_text_button_underline_height: 3px;
--addonify_text_button_hover_color: var(--addonify_secondary_color);

--addonify_button_is_link_style_text_color: #ef2c2c;
--addonify_button_is_link_style_hover_text_color: #1e73be;
--addonify_button_is_link_style_underline_color: #ef2c2c;
--addonify_button_is_link_style_hover_underline_color: #1e73be;
// Tooltip
--addonify_tooltip_icon_color: #767676;


// Options
--addonify_option_box_solid_border_color: #ECECEC;

/* --------------------------------------------------------------------------
Typography variables
Expand All @@ -49,13 +50,19 @@
--addonify_system_font_family: -apple-system, BlinkMacSystemFont, Helvetica, Arial, Inter, Roboto, Segoe ui, System ui, sans-serif; // websafe
--addonify_monospace_font_family: monospace;

--addonify_button_font_size: 15px; // 14px: 15px: 0.9375rem [16px: 1rem]
--addonify_base_font_family: 'Inter', sans-serif;
--addonify_base_font_weight: normal;
--addonify_heading_font_family: 'Manrope', sans-serif;
--addonify_heading_font_weight: 600;
--addonify_base_font_size: 16px;

--addonify_button_font_size: 15px;
--addonify_button_font_weight: normal;
--addonify_button_line_height: 1;

/* --------------------------------------------------------------------------
Border radius
-------------------------------------------------------------------------- */

--addonify_buttons_border_radius: 4px;
--addonify_buttons_border_radius: 3px;
}
30 changes: 30 additions & 0 deletions admin/app/src/assets/scss/app.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

@use 'abstract/vars' as *;
@use 'abstract/mixins' as *;

//@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

@import 'base/elements';
@import 'base/typography';
@import 'base/forms';
@import 'base/buttons';

@import 'helpers/class';

@import 'components/options/index';
@import 'components/partials/hero';
@import 'components/partials/navigation';
@import 'components/partials/upsell-banner';
@import 'components/partials/quick-links';

@import 'layouts/page';
@import 'layouts/entry';
@import 'layouts/header';
@import 'layouts/footer';
@import 'layouts/sidebar';
@import 'layouts/jumbo-box';
@import 'layouts/error';
@import 'layouts/recommended';
@import 'layouts/pro';

@import 'helpers/keyframes';
Loading

0 comments on commit f10ce65

Please sign in to comment.