Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// This file is part of Moodle - http://moodle.org/
2
//
3
// Moodle is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU General Public License as published by
5
// the Free Software Foundation, either version 3 of the License, or
6
// (at your option) any later version.
7
//
8
// Moodle is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
// GNU General Public License for more details.
12
//
13
// You should have received a copy of the GNU General Public License
14
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
15
 
16
/**
17
 * Selectors for the component library
18
 *
19
 * @module     tool_componentlibrary/selectors
20
 * @copyright  2021 Bas Brands <bas@moodle.com>
21
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
22
 */
23
export default {
24
    /**
25
     * A selector relating to the 'Copy to clipboard' button.
26
     *
27
     * @type {string}
28
     */
29
    clipboardbutton: '.btn-clipboard',
30
 
31
    /**
32
     * A selector relating to the content copied by the 'Copy to clipboard' button.
33
     *
34
     * @type {string}
35
     */
36
    clipboardcontent: 'figure.highlight, div.highlight',
37
 
38
    /**
39
     * A selector relating to the 'Search' text input.
40
     *
41
     * @type {string}
42
     */
43
    searchinput: '[data-region="docsearch"] input',
44
 
45
    /**
46
     * A selector relating to the 'Search' submit btton.
47
     *
48
     * @type {string}
49
     */
50
    searchsubmit: '[data-region="docsearch"] .btn-submit',
51
 
52
    /**
53
     * A selector relating to the search dropdown menu.
54
     *
55
     * @type {string}
56
     */
57
    dropdownmenu: '[data-region="docsearch"] .dropdown-menu',
58
 
59
    /**
60
     * A selector relating to the entire Component Library content region.
61
     *
62
     * @type {string}
63
     */
64
    componentlibrary: '[data-region="componentlibrary"]',
65
 
66
    /**
67
     * A selector relating to JS Code which is to be run for examples to function.
68
     *
69
     * @type {string}
70
     */
71
    jscode: '[data-action="runjs"]',
72
 
73
    /**
74
     * A selector relating to Mustache Template code regions.
75
     *
76
     * @type {string}
77
     */
78
    mustachecode: '[data-region="mustachecode"]',
79
 
80
    /**
81
     * A selector relating to raw Mustache content regions.
82
     *
83
     * @type {string}
84
     */
85
    mustacherawcontext: '[data-region="rawcontext"]',
86
 
87
    /**
88
     * A selector relating to rendered Mustache content regions.
89
     *
90
     * @type {string}
91
     */
92
    mustacherendered: '[data-region="mustacherendered"]',
93
 
94
    /**
95
     * A selector relating to Mustache source code regions.
96
     *
97
     * @type {string}
98
     */
99
    mustachesource: '[data-region="mustachesource"]',
100
 
101
    /**
102
     * A selector relating to Mustache context regions.
103
     *
104
     * @type {string}
105
     */
106
    mustachecontext: '[data-region="mustachecontext"]',
107
};