alex-lit / octobercms-juicy-theme Goto Github PK
View Code? Open in Web Editor NEWClean, simple and responsive landing page build on Vue.js with backend editing
Home Page: http://octobercms.com/theme/alexlit-juicy
Clean, simple and responsive landing page build on Vue.js with backend editing
Home Page: http://octobercms.com/theme/alexlit-juicy
Basically it. I was trying to find the main file where all components are declared and couldn't find it.
What's the right way to create a custom component? I guess someone has to modify theme.yaml to add the component but will that be enough? What about adding a component that includes plugins or server code?
How can I enable this Vuejs code in my project?
jQuery(document).ready(function(t) {
t("[data-form-phone-field]").mask("+7 (999) 999-99-99"), t("[data-form-time-field]").mask("99:99"), t("[data-form-btn]").click(function() {
var e = t(this),
i = t(this).parents("[data-form]"),
o = i.find("[data-form-status]"),
a = {},
n = e.text(),
s = i.attr("data-form-template"),
r = i.attr("data-form-recipient"),
l = i.attr("data-reachGoal"),
c = ["Пожалуйста, укажите номер телефона", "Спасибо, сообщение отправлено", "При отправке сообщения возникли проблемы. Пожалуйста, отправьте письмо на ящик " + r];
return i.find("[required]").each(function() {
t(this).removeAttr("data-form-field-invalid"), "" != t(this).val() && t(this).val() != t(this).attr("placeholder") || (t(this).attr("data-form-field-invalid", ""), i.find("input[data-form-field-invalid], textarea[data-form-field-invalid]").addClass("shake animated"), setTimeout(function() {
i.find("input[data-form-field-invalid], textarea[data-form-field-invalid]").removeClass("shake animated")
}, 1e3))
}), i.find("[data-form-field-invalid]").length ? (o.html(c[0]).slideDown(500), !1) : (i.find("input, textarea, select").each(function(e) {
var i = t(this).attr("name"),
o = t(this).attr("placeholder") || t(this).prev().html();
o = t.trim(o.replace(/[:]/g, "")), a[i] = {
label: o,
value: t(this).val()
}
}), t.ajax({
url: "/themes/" + s + "/assets/forms/send-form.php",
type: "POST",
data: {
send: "do",
to: r,
subj: i.attr("title"),
data: a
},
beforeSend: function() {
e.text("Отправка...")
},
success: function(t) {
var a = parseInt(t);
return e.text(n), o.html(c[a]).slideUp(500), 1 == a && (i.attr("data-form-success", ""), i.find("input, textarea, select").val("")), yaCounter39444945.reachGoal(l), !0
},
error: function(t, e, i) {
alert(e + "," + i + "," + t.responseText)
}
}), !1)
})
})
Can you please share how this code works, and what should be modified from default template?
Thanks in advance.
I'd like to add a contact form using one of the plugins but I don't know how to integrate them. I tried using one of the widgets but they are not compatible with components and when trying to add them from the main page it doesn't render properly.
So far I tried Magic Forms and Custom Forms.
after yarn install
, how do i make october can parse dist/pages/*.htm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.