Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 11/29/2017
* Time: 11:42 AM
*/
var base_view = require( '../base' ),
line_chart = require( '../charts/line-chart' );
module.exports = base_view.extend( {
current_interval: 'day',
type: 'conversion_rate',
render_to: '',
initialize: function ( options ) {
base_view.prototype.initialize.apply( this, arguments );
this.render_to = options.render_to;
this.update_chart();
},
draw_chart: function ( render_to ) {
this.chart = new line_chart( {
title: '',
type: 'spline',
data: [],
renderTo: render_to
} );
this.chart.showLoading();
},
interval_changed: function ( type, interval ) {
var self = this;
if ( interval === this.current_interval && type === this.type ) {
return;
}
this.current_interval = interval;
this.type = type;
if ( typeof this.chart !== 'undefined' ) {
this.chart.showLoading();
}
this.model.fetch( {
data: jQuery.param( {
type: type,
interval: interval
} ),
success: function () {
self.update_chart();
}
} );
},
update_chart: function () {
if ( typeof this.chart === 'undefined' ) {
this.draw_chart( this.render_to );
}
this.chart.set( 'data', this.model.get( 'data' ) );
this.chart.set( 'title', '' );
this.chart.set( 'x_axis', this.model.get( 'x_axis' ) );
this.chart.set( 'y_axis', this.model.get( 'y_axis' ) );
this.chart.redraw();
this.update_description();
},
update_description: function () {
this.$( '#thrive-ab-chart-title' ).html( this.model.get( 'title' ) );
this.$( '#thrive-ab-chart-total-value' ).html( this.model.get( 'total_over_time' ) + ' ' + this.model.get( 'test_type_txt' ) );
}
} );

View File

@@ -0,0 +1,25 @@
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 11/27/2017
* Time: 2:31 PM
*/
var base_view = require( '../base' );
module.exports = base_view.extend( {
template: TVE_Dash.tpl( 'report/report-item' ),
tagName: 'tr',
initialize: function () {
},
render: function () {
this.$el.html( this.template( {model: this.model} ) );
return this;
}
} );

View File

@@ -0,0 +1,61 @@
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 11/27/2017
* Time: 10:20 AM
*/
var base_view = require( '../base' ),
report_item_view = require( './report-item' ),
report_chart = require( './report-chart' ),
chart_model = require( './../../models/report-chart' ),
test_table_view = require( './../test/table' ),
winner_modal = require( './../../modals/winner' );
module.exports = base_view.extend( {
template: TVE_Dash.tpl( 'report/report' ),
initialize: function () {
base_view.prototype.initialize.apply( this, arguments );
},
render: function () {
this.$el.html( this.template( {
model: this.model,
edit_page_link: ThriveAB.page.edit_link
} ) );
this.$( 'select' ).select2();
var table_view = new test_table_view( {
el: this.$( '#thrive-ab-test' ),
model: this.model
} );
this.do_chart();
},
update_chart: function ( event, dom ) {
var type = this.$( '.tab-graph-type' ).val(),
interval = this.$( '.tab-graph-interval' ).val();
this.report_chart.interval_changed( type, interval );
},
do_chart: function () {
this.report_chart = new report_chart( {
el: this.$el,
model: new chart_model( ThriveAB.test_chart ),
render_to: 'tab-test-chart'
} );
},
stop_test: function () {
TVE_Dash.modal( winner_modal, {
model: this.model,
collection: this.collection,
'max-width': '80%',
width: '80%',
title: ThriveAB.t.choose_winner
} );
}
} );