This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelper.user.js
93 lines (83 loc) · 5.53 KB
/
helper.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// ==UserScript==
// @name Staffing Desc Helper
// @namespace http://tampermonkey.net/
// @version 2021.10.05
// @description The script helps to work with Staffing Desk
// @author Vladislav Romanovsky
// @contributor Dmitry Scherbatykh
// @match https://staffing.epam.com/*
// @icon https://www.google.com/s2/favicons?domain=epam.com
// @grant GM_getResourceText
// @grant GM_addStyle
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_info
// @grant GM_xmlhttpRequest
// @updateURL https://github.com/FrostBy/anywhere/raw/master/helper.user.js
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-scrollTo/2.1.3/jquery.scrollTo.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/tooltipster/4.2.8/js/tooltipster.bundle.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/configurator/configurator.shared.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/configurator/configurator.requisitions.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/configurator/configurator.startup.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/dom/dom.shared.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/dom/dom.containers.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/dom/dom.startup.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/dom/dom.profile.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/filter/filter.shared.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/filter/filter.containers.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/filter/filter.requisitions.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/filter/filter.startup.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/config.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/engagementDetails.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/proposal.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/offer.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/requisition.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/salary.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/staffingReport.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/version.js
// @require https://github.com/FrostBy/anywhere/raw/master/services/wizard.js
// @require https://github.com/FrostBy/anywhere/raw/master/routes/containers.js
// @require https://github.com/FrostBy/anywhere/raw/master/routes/requisitions.js
// @require https://github.com/FrostBy/anywhere/raw/master/routes/requisitionEdit.js
// @require https://github.com/FrostBy/anywhere/raw/master/routes/profile.js
// @require https://github.com/FrostBy/anywhere/raw/master/routes/profileEdit.js
// @require https://github.com/FrostBy/anywhere/raw/master/routes/startup.js
// @require https://github.com/FrostBy/anywhere/raw/master/routes/router.js
// @resource IMPORTED_CSS_TOOLTIPSTER https://cdnjs.cloudflare.com/ajax/libs/tooltipster/4.2.8/css/tooltipster.bundle.min.css
// @resource IMPORTED_CSS_TOOLTIPSTER_LIGHT https://cdnjs.cloudflare.com/ajax/libs/tooltipster/4.2.8/css/plugins/tooltipster/sideTip/themes/tooltipster-sideTip-light.min.css
// @resource IMPORTED_CSS_TOASTR https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css
// @resource IMPORTED_CSS_SHARED https://github.com/FrostBy/anywhere/raw/master/css/shared.css
// @resource IMPORTED_CSS_STARTUP https://github.com/FrostBy/anywhere/raw/master/css/startup.css
// @resource IMPORTED_CSS_CONTAINERS https://github.com/FrostBy/anywhere/raw/master/css/containers.css
// @resource IMPORTED_CSS_PROFILE https://github.com/FrostBy/anywhere/raw/master/css/profile.css
// ==/UserScript==
(() => {
window.services = {
Config,
Dom: { Shared: DomShared, Containers: DomContainers, Startup: DomStartup, Profile: DomProfile },
Filter: { Shared: FilterShared, Startup: FilterStartup, Containers: FilterContainers, Requisitions: FilterRequisitions },
StaffingReport,
Proposal,
Offer,
Salary,
EngagementDetails,
Requisition,
Wizard,
Configurator: { Shared: ConfiguratorShared, Startup: ConfiguratorStartup, Requisitions: ConfiguratorRequisitions }
};
window.GM_setValue = GM_setValue;
window.GM_getValue = GM_getValue;
window.version = GM_info.script.version;
window.updateURL = GM_info.script.updateURL;
GM_addStyle(GM_getResourceText('IMPORTED_CSS_TOOLTIPSTER'));
GM_addStyle(GM_getResourceText('IMPORTED_CSS_TOOLTIPSTER_LIGHT'));
GM_addStyle(GM_getResourceText('IMPORTED_CSS_TOASTR'));
GM_addStyle(GM_getResourceText('IMPORTED_CSS_SHARED'));
GM_addStyle(GM_getResourceText('IMPORTED_CSS_STARTUP'));
GM_addStyle(GM_getResourceText('IMPORTED_CSS_CONTAINERS'));
GM_addStyle(GM_getResourceText('IMPORTED_CSS_PROFILE'));
(async () => { if (await Version.check()) initRouter(); })();
})();