Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"id": 5000061,
|
||||
"name": "5.0.4 Beta 1",
|
||||
"steps": {
|
||||
"queries": true,
|
||||
"lang": true,
|
||||
"theme": true,
|
||||
"themeeditor": true,
|
||||
"javascript": true,
|
||||
"emailTemplates": true,
|
||||
"acpSearchKeywords": false,
|
||||
"settings": true,
|
||||
"tasks": false,
|
||||
"modules": false,
|
||||
"widgets": true,
|
||||
"customOptions": false,
|
||||
"customRoutines": true
|
||||
},
|
||||
"forceMainUpgrader": true,
|
||||
"forceManualDownloadNoCiC": false,
|
||||
"forceManualDownloadCiC": false
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [
|
||||
"notification_new_recognize"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"files": {
|
||||
"added": [
|
||||
"core\/admin\/controllers\/core\/ips.core.tags.js"
|
||||
],
|
||||
"edited": [
|
||||
"global\/framework\/common\/ui\/ips.ui.autocomplete.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.carousel.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.codebox.js",
|
||||
"global\/framework\/common\/ui\/ips.ui.editorv5.js",
|
||||
"global\/framework\/common\/utils\/ips.utils.iconpicker.js",
|
||||
"global\/framework\/common\/utils\/ips.utils.lazyload.js",
|
||||
"global\/framework\/common\/utils\/ips.utils.sockets.js",
|
||||
"core\/admin\/controllers\/badgepreview\/ips.core.badgepreview.js",
|
||||
"global\/front\/controllers\/core\/ips.core.commentFeed.js",
|
||||
"core\/front\/controllers\/core\/ips.core.followButton.js",
|
||||
"global\/front\/controllers\/core\/ips.core.instantNotifications.js",
|
||||
"core\/front\/controllers\/core\/ips.core.moderation.js",
|
||||
"core\/front\/controllers\/system\/ips.system.metaTagEditor.js",
|
||||
"core\/front\/controllers\/widgets\/ips.widgets.carouselControls.js"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"orders": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
{
|
||||
"normal": {
|
||||
"added": [
|
||||
"gbw_can_mark_helpful",
|
||||
"gbw_can_mark_helpful_desc",
|
||||
"auto_share_x",
|
||||
"auto_share_facebook",
|
||||
"auto_share_reddit",
|
||||
"auto_share_email",
|
||||
"auto_share_linkedin",
|
||||
"auto_share_pinterest",
|
||||
"widget_feed_offset",
|
||||
"custombadge_use_custom",
|
||||
"custombadge_preview",
|
||||
"custombadge_icon",
|
||||
"custombadge_foreground",
|
||||
"custombadge_foreground_desc",
|
||||
"custombadge_background",
|
||||
"custombadge_border",
|
||||
"custombadge_shape",
|
||||
"custombadge_square",
|
||||
"custombadge_circle",
|
||||
"custombadge_n_gon",
|
||||
"custombadge_star",
|
||||
"custombadge_flower",
|
||||
"custombadge_sides",
|
||||
"custombadge_sides_desc",
|
||||
"custombadge_rotation",
|
||||
"custombadge_rotation_desc",
|
||||
"custombadge_number_overlay",
|
||||
"custombadge_number_overlay_desc",
|
||||
"tag_tools",
|
||||
"merge_tag_tool",
|
||||
"tags_mass_delete",
|
||||
"tag_merge_from",
|
||||
"tag_merge_to",
|
||||
"err__bad_tag_merge",
|
||||
"tag_merge_requested",
|
||||
"queue_merging_tag",
|
||||
"tag_merge_processing",
|
||||
"tag_to_delete"
|
||||
],
|
||||
"edited": [
|
||||
"reg_privacy_link",
|
||||
"all_permissions_group_hovertitle",
|
||||
"all_permissions_node_hovertitle",
|
||||
"block_promoted",
|
||||
"sign_in_with_these",
|
||||
"club_node"
|
||||
],
|
||||
"removed": [
|
||||
"auto_share_twitter",
|
||||
"badge_use_custom",
|
||||
"badge_preview",
|
||||
"badge_icon",
|
||||
"badge_foreground",
|
||||
"badge_foreground_desc",
|
||||
"badge_background",
|
||||
"badge_border",
|
||||
"badge_shape",
|
||||
"badge_square",
|
||||
"badge_circle",
|
||||
"badge_n_gon",
|
||||
"badge_star",
|
||||
"badge_flower",
|
||||
"badge_sides",
|
||||
"badge_sides_desc",
|
||||
"badge_rotation",
|
||||
"badge_rotation_desc",
|
||||
"badge_number_overlay",
|
||||
"badge_number_overlay_desc"
|
||||
]
|
||||
},
|
||||
"js": {
|
||||
"added": [
|
||||
"tag_delete_confirm_detail",
|
||||
"iconpicker_no_results",
|
||||
"iconpicker_category--all_icons",
|
||||
"iconpicker_category--activities",
|
||||
"iconpicker_category--animals_nature",
|
||||
"iconpicker_category--flags",
|
||||
"iconpicker_category--food_drink",
|
||||
"iconpicker_category--objects",
|
||||
"iconpicker_category--smileys_people",
|
||||
"iconpicker_category--symbols",
|
||||
"iconpicker_category--travel_places",
|
||||
"editor_tool--media-options",
|
||||
"editor_tool--autosave-message-before",
|
||||
"editor_tool--autosave-message-inner",
|
||||
"editor_tool--autosave-message-after",
|
||||
"editor_tool--autoembed-message-before",
|
||||
"editor_tool--autoembed-message-inner",
|
||||
"editor_tool--autoembed-message-after",
|
||||
"editor_color--root",
|
||||
"editor_color--soft",
|
||||
"editor_color--hard",
|
||||
"editor_color--theme_1",
|
||||
"editor_color--theme_2",
|
||||
"editor_color--theme_3",
|
||||
"editor_color--theme_4",
|
||||
"editor_color--theme_5",
|
||||
"editor_color--theme_6",
|
||||
"editor_color--red",
|
||||
"editor_color--orange",
|
||||
"editor_color--yellow",
|
||||
"editor_color--green",
|
||||
"editor_color--blue",
|
||||
"editor_color--indigo",
|
||||
"editor_color--violet",
|
||||
"editor_color--box-match-prefix",
|
||||
"editor_font_default",
|
||||
"editor_attachment_upload_placeholder",
|
||||
"editor_link_panel--text",
|
||||
"editor_link_panel--text-placeholder",
|
||||
"editor_link_panel--url",
|
||||
"editor_link_panel--url-placeholder",
|
||||
"editor_font_size_default",
|
||||
"editor_giphy_attribution"
|
||||
],
|
||||
"edited": [
|
||||
"editor_tool--width-image-desc",
|
||||
"editor_tool--float-regular"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"1": {
|
||||
"method": "addColumn",
|
||||
"params": [
|
||||
"core_custom_badges",
|
||||
{
|
||||
"name": "file",
|
||||
"type": "VARCHAR",
|
||||
"length": 255,
|
||||
"decimals": null,
|
||||
"values": null,
|
||||
"allow_null": true,
|
||||
"default": null,
|
||||
"comment": "",
|
||||
"unsigned": false,
|
||||
"auto_increment": false
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [
|
||||
"club_nodes_in_apps"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"html": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"admin\/achievements\/badgePreview",
|
||||
"admin\/customization\/emoticons",
|
||||
"admin\/dashboard\/backgroundQueue",
|
||||
"admin\/forms\/header",
|
||||
"front\/forms\/header",
|
||||
"front\/forms\/popupTemplate",
|
||||
"front\/forms\/reviewTemplate",
|
||||
"front\/global\/comment",
|
||||
"front\/global\/commentEditHistory",
|
||||
"front\/global\/commentEditLine",
|
||||
"front\/global\/contentEditLine",
|
||||
"front\/global\/contentItemMessage",
|
||||
"front\/global\/coverPhoto",
|
||||
"global\/global\/dynamicChart",
|
||||
"front\/global\/footer",
|
||||
"front\/global\/globalTemplate",
|
||||
"front\/global\/metaTagEditor",
|
||||
"front\/global\/miniProfile",
|
||||
"front\/global\/mobileFooterBar",
|
||||
"front\/global\/mobileNavHeader",
|
||||
"admin\/global\/paddedBlock",
|
||||
"global\/global\/poll",
|
||||
"front\/global\/reputation",
|
||||
"front\/global\/review",
|
||||
"front\/global\/searchDialog",
|
||||
"front\/global\/userBar",
|
||||
"front\/global\/widgetArea",
|
||||
"admin\/memberprofile\/profileData",
|
||||
"front\/messaging\/template",
|
||||
"front\/modcp\/members",
|
||||
"front\/modcp\/promoteTableRows",
|
||||
"front\/modcp\/report",
|
||||
"front\/modcp\/template",
|
||||
"front\/modcp\/warnActions",
|
||||
"front\/online\/onlineUsersRow",
|
||||
"front\/profile\/allFollowers",
|
||||
"front\/profile\/hovercard",
|
||||
"front\/profile\/profileHeader",
|
||||
"front\/profile\/tableRow",
|
||||
"front\/profile\/userBadgeOverview",
|
||||
"admin\/settings\/dataLayerSelector",
|
||||
"admin\/stats\/helpful",
|
||||
"admin\/stats\/topFollow",
|
||||
"admin\/stats\/topmembers",
|
||||
"front\/streams\/streamWrapper",
|
||||
"front\/system\/followedContentMemberRow",
|
||||
"front\/system\/login",
|
||||
"front\/system\/loginForm",
|
||||
"front\/system\/register",
|
||||
"front\/system\/settingsSecureAccount",
|
||||
"front\/tags\/view",
|
||||
"front\/themeeditor\/themeEditorTemplate"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"css": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"front\/core.css",
|
||||
"admin\/core\/forms.css",
|
||||
"admin\/core\/misc.css",
|
||||
"admin\/core\/zzz-admin-only.css",
|
||||
"admin\/customization\/emoticons.css",
|
||||
"global\/framework\/1-3-variables.css",
|
||||
"global\/framework\/1-4-colors.css",
|
||||
"global\/framework\/3-boxes.css",
|
||||
"global\/framework\/3-carousel.css",
|
||||
"global\/framework\/3-data-tables.css",
|
||||
"global\/framework\/3-editor.css",
|
||||
"global\/framework\/3-entries.css",
|
||||
"global\/framework\/3-forms.css",
|
||||
"global\/framework\/3-iconpicker.css",
|
||||
"global\/framework\/3-inputs.css",
|
||||
"global\/framework\/3-misc.css",
|
||||
"global\/framework\/3-page-header.css",
|
||||
"global\/framework\/3-popup.css",
|
||||
"global\/framework\/3-post-content.css",
|
||||
"global\/framework\/3-richtext.css",
|
||||
"global\/framework\/3-tables.css",
|
||||
"global\/framework\/3-tabs.css",
|
||||
"global\/framework\/3-toolbox.css",
|
||||
"global\/framework\/4-footer.css",
|
||||
"global\/framework\/4-header.css",
|
||||
"global\/framework\/4-layout.css",
|
||||
"global\/framework\/4-mobile-footer.css",
|
||||
"global\/framework\/4-offcanvas.css",
|
||||
"front\/styles\/meta_tags.css"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"resources": {
|
||||
"added": [],
|
||||
"edited": [],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
{
|
||||
"categories": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"lightDarkMode",
|
||||
"logos",
|
||||
"pageLayouts",
|
||||
"typography",
|
||||
"header",
|
||||
"sidePanel",
|
||||
"content",
|
||||
"footer",
|
||||
"mobileNavigation",
|
||||
"navigationPanel",
|
||||
"global",
|
||||
"textLogo",
|
||||
"imageLogoDesktop",
|
||||
"imageLogoMobile",
|
||||
"desktopHeader",
|
||||
"mobileHeader",
|
||||
"desktopFooter",
|
||||
"body",
|
||||
"contentBoxes",
|
||||
"sidebar",
|
||||
"avatars",
|
||||
"buttons"
|
||||
],
|
||||
"removed": []
|
||||
},
|
||||
"settings": {
|
||||
"added": [],
|
||||
"edited": [
|
||||
"set__i-default-scheme",
|
||||
"set__i-logo-text",
|
||||
"set__i-sidebar-width",
|
||||
"i-primary-button--co",
|
||||
"set__i-mobile-icons-location",
|
||||
"set__logo-light",
|
||||
"i-footer--co",
|
||||
"set__mobile-logo-light",
|
||||
"layout_global_view_mode",
|
||||
"set__i-font-family",
|
||||
"set__i-design-border",
|
||||
"set__i-layout-width",
|
||||
"set__i-sidebar-ui-header--he",
|
||||
"set__i-position-logo",
|
||||
"set__i-mobile-header--he",
|
||||
"set__i-change-scheme",
|
||||
"set__i-logo-slogan",
|
||||
"i-primary-button--ba-co",
|
||||
"set__i-mobile-footer-labels",
|
||||
"set__logo-dark",
|
||||
"i-footer--ba-co",
|
||||
"set__mobile-logo-dark",
|
||||
"set__i-design-radius",
|
||||
"set__i-font-size",
|
||||
"set__i-flip-sidebar",
|
||||
"i-dashHeader--ba-co",
|
||||
"set__i-position-navigation",
|
||||
"i-headerMobile--ba-co",
|
||||
"i-headerMobile--co",
|
||||
"i-secondary-button--co",
|
||||
"set__i-logo--fo-fa",
|
||||
"set__i-position-user",
|
||||
"i-dashHeader--co",
|
||||
"set__i-avatar-radius",
|
||||
"i-color_root",
|
||||
"set__i-mobile-logo--he",
|
||||
"set__i-design-shadow",
|
||||
"i-mobileFooter--ba-co",
|
||||
"set__i-logo--he",
|
||||
"i-secondary-button--ba-co",
|
||||
"set__i-logo--fo-we",
|
||||
"i-navPanelLinkHover--co",
|
||||
"set__i-position-breadcrumb",
|
||||
"i-mobileFooter--co",
|
||||
"i-color_soft",
|
||||
"i-body--ba-co",
|
||||
"set__i-link-panels",
|
||||
"set__i-sidebar-ui-logo--he",
|
||||
"i-button--bo-ra",
|
||||
"set__i-desktop-logo--fo-si",
|
||||
"set__i-sticky-sidebar",
|
||||
"i-navPanelLinkActive--ba-co",
|
||||
"set__i-position-search",
|
||||
"i-mobileFooter-active--co",
|
||||
"i-color_hard",
|
||||
"i-box--ba-co",
|
||||
"set__i-header-primary--he",
|
||||
"set__i-sidebar-ui-logo--fo-si",
|
||||
"i-box--bo-co",
|
||||
"i-link--co",
|
||||
"i-mobileFooter-active--ba-co",
|
||||
"i-navPanel--ba-co",
|
||||
"set__i-mobile-logo--fo-si",
|
||||
"i-link-hover--co",
|
||||
"i-navPanel--co",
|
||||
"set__i-header-secondary--he",
|
||||
"i-boxHeader--ba-co",
|
||||
"i-boxHeader--co",
|
||||
"set__i-user-content-font-size",
|
||||
"i-navPanelLinkActive--co",
|
||||
"set__i-nav-bar-icons",
|
||||
"i-widget-header--ba-co",
|
||||
"i-headerTop--ba-co",
|
||||
"i-widget-header--co",
|
||||
"i-headerTop--co",
|
||||
"i-headerPrimary--ba-co",
|
||||
"i-headerPrimary--co",
|
||||
"i-headerSecondary--ba-co",
|
||||
"i-headerSecondary--co",
|
||||
"set__i-header-top--he"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* @brief 5.0.4 Beta 1 Upgrade Code
|
||||
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
|
||||
* @copyright (c) Invision Power Services, Inc.
|
||||
* @license https://www.invisioncommunity.com/legal/standards/
|
||||
* @package Invision Community
|
||||
|
||||
* @since 07 Mar 2025
|
||||
*/
|
||||
|
||||
namespace IPS\core\setup\upg_5000061;
|
||||
|
||||
use Exception;
|
||||
use IPS\core\CustomBadge;
|
||||
use IPS\Db;
|
||||
use IPS\File;
|
||||
use IPS\Log;
|
||||
use UnexpectedValueException;
|
||||
use function defined;
|
||||
|
||||
/* To prevent PHP errors (extending class does not exist) revealing path */
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
{
|
||||
header( ( $_SERVER['SERVER_PROTOCOL'] ?? 'HTTP/1.0' ) . ' 403 Forbidden' );
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 5.0.4 Beta 1 Upgrade Code
|
||||
*/
|
||||
class Upgrade
|
||||
{
|
||||
/**
|
||||
* Save custom badge files. There shouldn't be that many of them (please God)
|
||||
*
|
||||
* @return bool|array If returns TRUE, upgrader will proceed to next step. If it returns any other value, it will set this as the value of the 'extra' GET parameter and rerun this step (useful for loops)
|
||||
*/
|
||||
public function step1() : bool|array
|
||||
{
|
||||
/* Allow SVGs without the obscure hash removing the file extension */
|
||||
File::$safeFileExtensions[] = 'svg';
|
||||
|
||||
$badges = iterator_to_array( Db::i()->select( "*", 'core_custom_badges' ) );
|
||||
foreach( $badges as $badge )
|
||||
{
|
||||
if ( is_null( $badge['raw'] ) )
|
||||
{
|
||||
try
|
||||
{
|
||||
$custombadge = CustomBadge::constructFromData( $badge );
|
||||
$custombadge->generateSVG( true );
|
||||
$badge['raw'] = $custombadge->raw;
|
||||
if ( !is_string( $badge['raw'] ) )
|
||||
{
|
||||
throw new UnexpectedValueException( "Could not generate SVG for badge {$badge['id']}" );
|
||||
}
|
||||
}
|
||||
catch ( Exception $e )
|
||||
{
|
||||
Log::log( $e, "Upgrade 5.0.4" );
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$file = (string) File::create( 'core_Icons', 'custombadge-' . $badge['id'] . '.svg', $badge['raw'] );
|
||||
Db::i()->update( 'core_custom_badges', [ 'file' => $file ], [ 'id=?', $badge['id'] ] );
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// You can create as many additional methods (step2, step3, etc.) as is necessary.
|
||||
// Each step will be executed in a new HTTP request
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"added": [],
|
||||
"edited": [
|
||||
"tags"
|
||||
],
|
||||
"removed": []
|
||||
}
|
||||
Reference in new issue
Block a user