mirror of
https://github.com/RROrg/rr.git
synced 2025-09-04 19:07:16 +08:00
Compare commits
No commits in common. "798e03dfba4d2f3e8eb53023c46145c40905f434" and "1b4ee3b623110697f125d2fe76419dc331d614a4" have entirely different histories.
798e03dfba
...
1b4ee3b623
24
.github/workflows/issues.yml
vendored
24
.github/workflows/issues.yml
vendored
@ -41,8 +41,6 @@ jobs:
|
|||||||
size = ''
|
size = ''
|
||||||
template = ''
|
template = ''
|
||||||
language= ''
|
language= ''
|
||||||
sn = ''
|
|
||||||
macs = ''
|
|
||||||
model = ''
|
model = ''
|
||||||
version = ''
|
version = ''
|
||||||
kernel = ''
|
kernel = ''
|
||||||
@ -56,8 +54,6 @@ jobs:
|
|||||||
size = jsonbody.get('size', '')
|
size = jsonbody.get('size', '')
|
||||||
template = jsonbody.get('template', '')
|
template = jsonbody.get('template', '')
|
||||||
language = jsonbody.get('language', '')
|
language = jsonbody.get('language', '')
|
||||||
sn = jsonbody.get('sn', '')
|
|
||||||
macs = jsonbody.get('macs', '')
|
|
||||||
model = jsonbody.get('model', '')
|
model = jsonbody.get('model', '')
|
||||||
version = jsonbody.get('version', '')
|
version = jsonbody.get('version', '')
|
||||||
kernel = jsonbody.get('kernel', '')
|
kernel = jsonbody.get('kernel', '')
|
||||||
@ -77,8 +73,6 @@ jobs:
|
|||||||
set_output("size", size)
|
set_output("size", size)
|
||||||
set_output("template", template)
|
set_output("template", template)
|
||||||
set_output("language", language)
|
set_output("language", language)
|
||||||
set_output("sn", sn)
|
|
||||||
set_output("macs", macs)
|
|
||||||
set_output("model", model)
|
set_output("model", model)
|
||||||
set_output("version", version)
|
set_output("version", version)
|
||||||
set_output("kernel", kernel)
|
set_output("kernel", kernel)
|
||||||
@ -243,20 +237,6 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${{ env.sn }}" ]; then
|
|
||||||
echo "set sn: ${{ env.sn }}"
|
|
||||||
USER_CONFIG_FILE="rr/ws/mnt/p1/user-config.yml"
|
|
||||||
writeConfigKey "sn" "${{ env.sn }}" "${USER_CONFIG_FILE}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${{ env.macs }}" ]; then
|
|
||||||
echo "set macs: ${{ env.macs }}"
|
|
||||||
USER_CONFIG_FILE="rr/ws/mnt/p1/user-config.yml"
|
|
||||||
MACS=($(echo "${{ env.macs }}" | sed 's/[:-]//g' | sed 's/.*/\U&/' | sed 's/[;,]/ /g'))
|
|
||||||
writeConfigKey "mac1" "${MACS[0]}" "${USER_CONFIG_FILE}"
|
|
||||||
writeConfigKey "mac2" "${MACS[1]}" "${USER_CONFIG_FILE}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "${{ env.addons }}" ]; then
|
if [ -n "${{ env.addons }}" ]; then
|
||||||
echo "set addons: ${{ env.addons }}"
|
echo "set addons: ${{ env.addons }}"
|
||||||
USER_CONFIG_FILE="rr/ws/mnt/p1/user-config.yml"
|
USER_CONFIG_FILE="rr/ws/mnt/p1/user-config.yml"
|
||||||
@ -402,7 +382,7 @@ jobs:
|
|||||||
update-mode: replace
|
update-mode: replace
|
||||||
body: |
|
body: |
|
||||||
Hi @${{ github.event.issue.user.login }}.
|
Hi @${{ github.event.issue.user.login }}.
|
||||||
RR-${{ env.model }}-${{ env.TAG }} build success, please download the attachment from the below link (Attachments are only kept for 5 days).
|
RR-${{ env.model }} build success, please download the attachment from the below link (Attachments are only kept for 5 days).
|
||||||
> ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
> ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
----
|
----
|
||||||
emoji: hooray
|
emoji: hooray
|
||||||
@ -425,7 +405,7 @@ jobs:
|
|||||||
update-mode: replace
|
update-mode: replace
|
||||||
body: |
|
body: |
|
||||||
Hi @${{ github.event.issue.user.login }}.
|
Hi @${{ github.event.issue.user.login }}.
|
||||||
RR-${{ env.model }}-${{ env.TAG }} build failed, please try again.
|
RR-${{ env.model }} build failed, please try again.
|
||||||
> ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
> ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
----
|
----
|
||||||
emoji: confused
|
emoji: confused
|
||||||
|
@ -36,29 +36,12 @@
|
|||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
|
|
||||||
var repo = "RROrg/rr"
|
var repo = "RROrg/rr"
|
||||||
var debug = getUrlParam("debug");
|
|
||||||
|
|
||||||
var _models = {};
|
var _models = {};
|
||||||
var _pats = {};
|
var _pats = {};
|
||||||
var _addons = {};
|
var _addons = {};
|
||||||
var _modules = {};
|
var _modules = {};
|
||||||
|
|
||||||
function getUrlParam(paraName) {
|
|
||||||
var url = document.location.toString();
|
|
||||||
var arrObj = url.split("?");
|
|
||||||
if (arrObj.length > 1) {
|
|
||||||
var arrPara = arrObj[1].split("&");
|
|
||||||
var arr;
|
|
||||||
for (var i = 0; i < arrPara.length; i++) {
|
|
||||||
arr = arrPara[i].split("=");
|
|
||||||
if (arr != null && arr[0] == paraName) {
|
|
||||||
return arr[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
function httpGetAsync(theUrl, callback) {
|
function httpGetAsync(theUrl, callback) {
|
||||||
let xmlHttpReq = new XMLHttpRequest();
|
let xmlHttpReq = new XMLHttpRequest();
|
||||||
xmlHttpReq.onreadystatechange = function () {
|
xmlHttpReq.onreadystatechange = function () {
|
||||||
@ -87,13 +70,6 @@
|
|||||||
$("#language").on("change", changeVersion);
|
$("#language").on("change", changeVersion);
|
||||||
$("#kernel").on("change", chanageKernel);
|
$("#kernel").on("change", chanageKernel);
|
||||||
$('#addons').val("acpid,mountloader,powersched,reboottoloader,trivial,vmtools");
|
$('#addons').val("acpid,mountloader,powersched,reboottoloader,trivial,vmtools");
|
||||||
if (debug) {
|
|
||||||
$('#sn_item').show();
|
|
||||||
$('#macs_item').show();
|
|
||||||
} else {
|
|
||||||
$('#sn_item').hide();
|
|
||||||
$('#macs_item').hide();
|
|
||||||
}
|
|
||||||
setModels();
|
setModels();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -113,7 +89,6 @@
|
|||||||
}
|
}
|
||||||
changeModel();
|
changeModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeModel() {
|
function changeModel() {
|
||||||
model = $("#model").val();
|
model = $("#model").val();
|
||||||
var versions = [];
|
var versions = [];
|
||||||
@ -142,7 +117,6 @@
|
|||||||
createModulesBtn();
|
createModulesBtn();
|
||||||
chanageKernel();
|
chanageKernel();
|
||||||
}
|
}
|
||||||
|
|
||||||
function createAddonsBtn() {
|
function createAddonsBtn() {
|
||||||
var language = $("#language").val();
|
var language = $("#language").val();
|
||||||
var extstr = $('#addons').val().split(",");
|
var extstr = $('#addons').val().split(",");
|
||||||
@ -234,9 +208,6 @@
|
|||||||
var title = "custom";
|
var title = "custom";
|
||||||
var body = {};
|
var body = {};
|
||||||
var _parameters = ["title", "format", "size", "template", "language", "model", "version", "kernel", "addons", "modules"];
|
var _parameters = ["title", "format", "size", "template", "language", "model", "version", "kernel", "addons", "modules"];
|
||||||
if (debug) {
|
|
||||||
_parameters.push("sn", "macs");
|
|
||||||
}
|
|
||||||
for (var key in _parameters) {
|
for (var key in _parameters) {
|
||||||
var name = _parameters[key];
|
var name = _parameters[key];
|
||||||
if ($("#" + name).is(":hidden")) { continue; }
|
if ($("#" + name).is(":hidden")) { continue; }
|
||||||
@ -347,8 +318,7 @@
|
|||||||
<label class="color-fg-default text-mono f6">Template:</label>
|
<label class="color-fg-default text-mono f6">Template:</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group-body">
|
<div class="form-group-body">
|
||||||
<select class="form-select form-control select-sm input-contrast" id="template" name="inputs[template]"
|
<select class="form-select form-control select-sm input-contrast" id="template" name="inputs[template]" value="">
|
||||||
value="">
|
|
||||||
<option value="true">true</option>
|
<option value="true">true</option>
|
||||||
<option selected="selected" value="false">false</option>
|
<option selected="selected" value="false">false</option>
|
||||||
</select>
|
</select>
|
||||||
@ -379,22 +349,6 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group mt-1 mb-2" id="sn_item">
|
|
||||||
<div class="form-group-header">
|
|
||||||
<label class="color-fg-default text-mono f6">SN:</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group-body">
|
|
||||||
<input class="form-control input-contrast input-sm" type="text" id="sn" name="inputs[sn]" value=""></input>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group mt-1 mb-2" id="macs_item">
|
|
||||||
<div class="form-group-header">
|
|
||||||
<label class="color-fg-default text-mono f6">MACs: (Please separate multiple with ','.)</label>
|
|
||||||
</div>
|
|
||||||
<div class="form-group-body">
|
|
||||||
<input class="form-control input-contrast input-sm" type="text" id="macs" name="inputs[macs]" value=""></input>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group mt-1 mb-2" id="model_item">
|
<div class="form-group mt-1 mb-2" id="model_item">
|
||||||
<div class="form-group-header">
|
<div class="form-group-header">
|
||||||
<label class="color-fg-default text-mono f6">Model:</label>
|
<label class="color-fg-default text-mono f6">Model:</label>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user