Skip to content

Release/1.12.0 #159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 78 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
c88d556
Testing JS github action package json module
bparmar-splunk Mar 11, 2022
4e1701b
List command & action module removed
bparmar-splunk Mar 11, 2022
804d859
Node v8 removed
bparmar-splunk Mar 11, 2022
d3c4b36
Mustache dependency added
bparmar-splunk Mar 11, 2022
fa5bfe4
Dependency and method of mustache js changed
bparmar-splunk Mar 14, 2022
5efe5c1
Test workflow modified
bparmar-splunk Mar 14, 2022
9156109
Sequence of test workflow changed
bparmar-splunk Mar 14, 2022
a4b8414
Docs generation and zipping added
bparmar-splunk Mar 14, 2022
2d55d5b
Github workflow files modified
bparmar-splunk Mar 14, 2022
c2b4303
Node v8 enabled on Test yml file
bparmar-splunk Mar 14, 2022
5152fff
Merge pull request #148 from splunk/DVPL-10799
bparmar-splunk Mar 16, 2022
2c0ecb2
Update cli.js
ashah-splunk Apr 8, 2022
6a011cd
removed examples directory
akaila-splunk Apr 11, 2022
2c68efd
Added cmdline.js file for test cases and removed examples test cases
akaila-splunk Apr 11, 2022
7fd6d92
Updated README.md file and removed examples references
akaila-splunk Apr 11, 2022
5955e37
updated compiled files
ashah-splunk Apr 13, 2022
b8f07e2
[DVPL-10898] Remove node_modules from repo
Mar 31, 2022
0db108d
Merge pull request #150 from splunk/master
ashah-splunk Apr 18, 2022
8debed5
Added 'User-Agent' header for the REST API calls
akaila-splunk Apr 19, 2022
01fc45f
node module changes
ashah-splunk Apr 21, 2022
d1c858f
node modules
ashah-splunk Apr 22, 2022
814838b
node modules
ashah-splunk Apr 22, 2022
303dee6
Update package-lock.json
ashah-splunk Apr 25, 2022
ff0ade6
Update package-lock.json
ashah-splunk Apr 25, 2022
ed024d3
node modules
ashah-splunk Apr 25, 2022
fabce0f
node modules
ashah-splunk Apr 25, 2022
9941ca8
node modules
ashah-splunk Apr 25, 2022
3beadf1
removed lib/modularinputs directory
akaila-splunk Apr 26, 2022
35b4780
removed modularinputs test cases
akaila-splunk Apr 26, 2022
dfb0d8d
Updated README.md file and removed modularinputs references
akaila-splunk Apr 26, 2022
4d17a09
Revert "node modules"
ashah-splunk Apr 27, 2022
e6dce4e
Revert "node modules"
ashah-splunk Apr 27, 2022
a6a7553
Revert "node modules"
ashah-splunk Apr 27, 2022
09c63fd
Revert "Update package-lock.json"
ashah-splunk Apr 27, 2022
08627a4
Revert "Update package-lock.json"
ashah-splunk Apr 27, 2022
1d8966d
Revert "node modules"
ashah-splunk Apr 27, 2022
29342c5
Revert "node modules"
ashah-splunk Apr 27, 2022
8742819
Revert "node module changes"
ashah-splunk Apr 27, 2022
b4160fd
Update README.md
ashah-splunk Apr 27, 2022
590b01a
Added "Splunk-Client" as the new header
ashah-splunk Apr 28, 2022
7202fec
Merge pull request #149 from splunk/compile-fix
ashah-splunk Apr 29, 2022
793a971
Merge branch 'develop' into DVPL-10513
ashah-splunk Apr 29, 2022
7a51d09
compiled files updated with user agent change
ashah-splunk Apr 29, 2022
9323b02
Merge pull request #151 from splunk/DVPL-10513
ashah-splunk Apr 29, 2022
7c34147
Merge branch 'develop' into DVPL-10779
akaila-splunk Apr 29, 2022
cbbacd2
Update cli.js
akaila-splunk Apr 29, 2022
b2f8000
Updated a compiled files
akaila-splunk Apr 29, 2022
7b05a22
[DVPL-10898] Re-implement getting Version and new unit test
Apr 29, 2022
7f3d2b2
added assets directory for the docs
akaila-splunk May 2, 2022
62978bc
Merge pull request #152 from splunk/DVPL-10779
ashah-splunk May 13, 2022
c697c63
Merge branch 'develop' into DVPL-11009
ashah-splunk May 13, 2022
37a1dc0
compiled files updated
ashah-splunk May 13, 2022
56dd574
changed assets path
ashah-splunk May 13, 2022
e25facc
static assets directory
ashah-splunk May 13, 2022
e5313f7
Update cli.js
ashah-splunk May 13, 2022
82fe596
Merge branch 'develop' into DVPL-11058
ashah-splunk May 13, 2022
ab48fa9
Update cli.js
ashah-splunk May 13, 2022
87e7cd2
Merge pull request #153 from splunk/DVPL-11009
ashah-splunk May 19, 2022
52e4472
Merge pull request #154 from splunk/DVPL-11058
ashah-splunk May 19, 2022
7e752b8
Search API jobs v2 (/results_preview, /results, /events) allows searc…
Jun 7, 2022
2201f4a
Update test job - post processing with search params
Jun 8, 2022
933bd3f
added create method for StoragePasswords
akaila-splunk Jun 13, 2022
37cb4ec
Revert "added create method for StoragePasswords"
akaila-splunk Jun 13, 2022
7736bb9
Take changes from develop
fantavlik Jun 13, 2022
3ad4307
Merge commit '37cb4ecb2bf433c3d217f9bc230a6cb26a69655a' into DVPL-108…
fantavlik Jun 13, 2022
986a367
Regenerate front-end files
fantavlik Jun 13, 2022
7aaba04
Revert node_modules removal for now
fantavlik Jun 13, 2022
fbc802e
Add back node_modules for now
fantavlik Jun 13, 2022
5d78a2a
Add back missing node_modules
fantavlik Jun 13, 2022
5ef4bb2
Take package-lock from develop
fantavlik Jun 13, 2022
a5e528e
Restore missing node_modules files
fantavlik Jun 13, 2022
70e57f5
Revert some testing changes from b8f07e2d
fantavlik Jun 15, 2022
1706753
Undo cmdline change related to examples removal
fantavlik Jun 15, 2022
8fbd62e
Update generated test files
fantavlik Jun 15, 2022
c4ac350
Update generated client files
fantavlik Jun 15, 2022
5f1df1d
Update test matrix to test 8.2 and latest (currently 9.0) and update …
fantavlik Jun 16, 2022
721a9ff
Merge pull request #157 from splunk/DVPL-10898-develop
fantavlik Jun 16, 2022
f32fb4e
release 1.12.0 version changes
akaila-splunk Jun 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added assets directory for the docs
  • Loading branch information
akaila-splunk committed May 2, 2022
commit 7f3d2b2760360223255e5fa66990c2513af2218c
686 changes: 686 additions & 0 deletions bin/assets/css/bootstrap-responsive.css

Large diffs are not rendered by default.

3,990 changes: 3,990 additions & 0 deletions bin/assets/css/bootstrap.css

Large diffs are not rendered by default.

845 changes: 845 additions & 0 deletions bin/assets/css/docs.css

Large diffs are not rendered by default.

Binary file added bin/assets/img/glyphicons-halflings-white.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 bin/assets/img/glyphicons-halflings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 106 additions & 0 deletions bin/assets/js/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
## 2.0 BOOTSTRAP JS PHILOSOPHY
These are the high-level design rules which guide the development of Bootstrap's plugin apis.

---

### DATA-ATTRIBUTE API

We believe you should be able to use all plugins provided by Bootstrap purely through the markup API without writing a single line of javascript.

We acknowledge that this isn't always the most performant and sometimes it may be desirable to turn this functionality off altogether. Therefore, as of 2.0 we provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:

$('body').off('.data-api')

To target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:

$('body').off('.alert.data-api')

---

### PROGRAMATIC API

We also believe you should be able to use all plugins provided by Bootstrap purely through the JS API.

All public APIs should be single, chainable methods, and return the collection acted upon.

$(".btn.danger").button("toggle").addClass("fat")

All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior:

$("#myModal").modal() // initialized with defaults
$("#myModal").modal({ keyboard: false }) // initialized with now keyboard
$("#myModal").modal('show') // initializes and invokes show immediately afterqwe2

---

### OPTIONS

Options should be sparse and add universal value. We should pick the right defaults.

All plugins should have a default object which can be modified to effect all instance's default options. The defaults object should be available via `$.fn.plugin.defaults`.

$.fn.modal.defaults = { … }

An options definition should take the following form:

*noun*: *adjective* - describes or modifies a quality of an instance

examples:

backdrop: true
keyboard: false
placement: 'top'

---

### EVENTS

All events should have an infinitive and past participle form. The infinitive is fired just before an action takes place, the past participle on completion of the action.

show | shown
hide | hidden

---

### CONSTRUCTORS

Each plugin should expose it's raw constructor on a `Constructor` property -- accessed in the following way:


$.fn.popover.Constructor

---

### DATA ACCESSOR

Each plugin stores a copy of the invoked class on an object. This class instance can be accessed directly through jQuery's data API like this:

$('[rel=popover]').data('popover') instanceof $.fn.popover.Constructor

---

### DATA ATTRIBUTES

Data attributes should take the following form:

- data-{{verb}}={{plugin}} - defines main interaction
- data-target || href^=# - defined on "control" element (if element controls an element other than self)
- data-{{noun}} - defines class instance options

examples:

// control other targets
data-toggle="modal" data-target="#foo"
data-toggle="collapse" data-target="#foo" data-parent="#bar"

// defined on element they control
data-spy="scroll"

data-dismiss="modal"
data-dismiss="alert"

data-toggle="dropdown"

data-toggle="button"
data-toggle="buttons-checkbox"
data-toggle="buttons-radio"
180 changes: 180 additions & 0 deletions bin/assets/js/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
// IT'S ALL JUST JUNK FOR OUR DOCS!
// ++++++++++++++++++++++++++++++++++++++++++

!function ($) {

$(function(){

// Disable certain links in docs
$('section [href^=#]').click(function (e) {
e.preventDefault()
})

// make code pretty
window.prettyPrint && prettyPrint()

// add-ons
$('.add-on :checkbox').on('click', function () {
var $this = $(this)
, method = $this.attr('checked') ? 'addClass' : 'removeClass'
$(this).parents('.add-on')[method]('active')
})

// position static twipsies for components page
if ($(".twipsies a").length) {
$(window).on('load resize', function () {
$(".twipsies a").each(function () {
$(this)
.tooltip({
placement: $(this).attr('title')
, trigger: 'manual'
})
.tooltip('show')
})
})
}

// add tipsies to grid for scaffolding
if ($('#grid-system').length) {
$('#grid-system').tooltip({
selector: '.show-grid > div'
, title: function () { return $(this).width() + 'px' }
})
}

// fix sub nav on scroll
var $win = $(window)
, $nav = $('.subnav')
, navTop = $('.subnav').length && $('.subnav').offset().top - 40
, isFixed = 0

processScroll()

$win.on('scroll', processScroll)

function processScroll() {
var i, scrollTop = $win.scrollTop()
if (scrollTop >= navTop && !isFixed) {
isFixed = 1
$nav.addClass('subnav-fixed')
} else if (scrollTop <= navTop && isFixed) {
isFixed = 0
$nav.removeClass('subnav-fixed')
}
}

// tooltip demo
$('.tooltip-demo.well').tooltip({
selector: "a[rel=tooltip]"
})

$('.tooltip-test').tooltip()
$('.popover-test').popover()

// popover demo
$("a[rel=popover]")
.popover()
.click(function(e) {
e.preventDefault()
})

// button state demo
$('#fat-btn')
.click(function () {
var btn = $(this)
btn.button('loading')
setTimeout(function () {
btn.button('reset')
}, 3000)
})

// carousel demo
$('#myCarousel').carousel()

// javascript build logic
var inputsComponent = $("#components.download input")
, inputsPlugin = $("#plugins.download input")
, inputsVariables = $("#variables.download input")

// toggle all plugin checkboxes
$('#components.download .toggle-all').on('click', function (e) {
e.preventDefault()
inputsComponent.attr('checked', !inputsComponent.is(':checked'))
})

$('#plugins.download .toggle-all').on('click', function (e) {
e.preventDefault()
inputsPlugin.attr('checked', !inputsPlugin.is(':checked'))
})

$('#variables.download .toggle-all').on('click', function (e) {
e.preventDefault()
inputsVariables.val('')
})

// request built javascript
$('.download-btn').on('click', function () {

var css = $("#components.download input:checked")
.map(function () { return this.value })
.toArray()
, js = $("#plugins.download input:checked")
.map(function () { return this.value })
.toArray()
, vars = {}
, img = ['glyphicons-halflings.png', 'glyphicons-halflings-white.png']

$("#variables.download input")
.each(function () {
$(this).val() && (vars[ $(this).prev().text() ] = $(this).val())
})

$.ajax({
type: 'POST'
, url: 'http://bootstrap.herokuapp.com'
, dataType: 'jsonpi'
, params: {
js: js
, css: css
, vars: vars
, img: img
}
})
})

})

// Modified from the original jsonpi https://github.com/benvinegar/jquery-jsonpi
$.ajaxTransport('jsonpi', function(opts, originalOptions, jqXHR) {
var url = opts.url;

return {
send: function(_, completeCallback) {
var name = 'jQuery_iframe_' + jQuery.now()
, iframe, form

iframe = $('<iframe>')
.attr('name', name)
.appendTo('head')

form = $('<form>')
.attr('method', opts.type) // GET or POST
.attr('action', url)
.attr('target', name)

$.each(opts.params, function(k, v) {

$('<input>')
.attr('type', 'hidden')
.attr('name', k)
.attr('value', typeof v == 'string' ? v : JSON.stringify(v))
.appendTo(form)
})

form.appendTo('body').submit()
}
}
})

}(window.jQuery)
94 changes: 94 additions & 0 deletions bin/assets/js/bootstrap-alert.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/* ==========================================================
* bootstrap-alert.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2012 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================== */


!function( $ ){

"use strict"

/* ALERT CLASS DEFINITION
* ====================== */

var dismiss = '[data-dismiss="alert"]'
, Alert = function ( el ) {
$(el).on('click', dismiss, this.close)
}

Alert.prototype = {

constructor: Alert

, close: function ( e ) {
var $this = $(this)
, selector = $this.attr('data-target')
, $parent

if (!selector) {
selector = $this.attr('href')
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
}

$parent = $(selector)
$parent.trigger('close')

e && e.preventDefault()

$parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())

$parent
.trigger('close')
.removeClass('in')

function removeElement() {
$parent
.trigger('closed')
.remove()
}

$.support.transition && $parent.hasClass('fade') ?
$parent.on($.support.transition.end, removeElement) :
removeElement()
}

}


/* ALERT PLUGIN DEFINITION
* ======================= */

$.fn.alert = function ( option ) {
return this.each(function () {
var $this = $(this)
, data = $this.data('alert')
if (!data) $this.data('alert', (data = new Alert(this)))
if (typeof option == 'string') data[option].call($this)
})
}

$.fn.alert.Constructor = Alert


/* ALERT DATA-API
* ============== */

$(function () {
$('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
})

}( window.jQuery );
Loading