Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37916773
en ru br
Репозитории ALT

Группа :: Система/Настройка/Прочее
Пакет: alterator-console

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

alterator-console-0.1.2/000075500000000000000000000000001231002237400151375ustar00rootroot00000000000000alterator-console-0.1.2/Makefile000064400000000000000000000003231231002237400165750ustar00rootroot00000000000000NAME=console
DESCRIPTION="Console"

INSTALL=/usr/bin/install

all:
clean:
install: install-module install-data

include /usr/share/alterator/build/module.mak

install-data:
install -d $(sysconfdir)/alterator
alterator-console-0.1.2/applications/000075500000000000000000000000001231002237400176255ustar00rootroot00000000000000alterator-console-0.1.2/applications/console.desktop000064400000000000000000000002611231002237400226610ustar00rootroot00000000000000[Desktop Entry]
Type=Application
Icon=console
Terminal=false
Name=Console
X-Alterator-URI=/console
X-Alterator-Help=console
Name[ru]=п п╬п╫я│п╬п╩я▄
Categories=X-Alterator-Systemalterator-console-0.1.2/backend3/000075500000000000000000000000001231002237400166115ustar00rootroot00000000000000alterator-console-0.1.2/backend3/console000075500000000000000000000013101231002237400201740ustar00rootroot00000000000000#!/bin/sh

alterator_api_version=1

. alterator-sh-functions

on_message()
{
case "$in_action" in
execute)
[ -n "$in_wd" ] || in_wd="/root"

# Set language
[ -n "$in_language" ] && export LANG="${in_language%%;*}.UTF-8"

# Reset TERM environment variable to prevent run of interactive program
export TERM=

# Execute command
[ -n "$in_command" ] && in_command="$(cd "$in_wd" 2>&1; $in_command 2>&1;wd=`pwd`)"

# Return result of chane directory and execute command
write_string_param wd "$in_wd"
write_string_param output "$wd$in_command"

# Clean command line
write_string_param command ""
;;
esac
}

message_loop
alterator-console-0.1.2/ui/000075500000000000000000000000001231002237400155545ustar00rootroot00000000000000alterator-console-0.1.2/ui/console/000075500000000000000000000000001231002237400172165ustar00rootroot00000000000000alterator-console-0.1.2/ui/console/ajax.scm000064400000000000000000000006431231002237400206500ustar00rootroot00000000000000(define-module (ui console ajax)
:use-module (alterator ajax)
:use-module (alterator woo)
:export (init))

; Execute command
(define (do-execute)
(form-update-value-list '("wd" "output" "command")
(woo "execute" "/console"
'wd (form-value "wd")
'command (form-value "command")
'language (form-value "language"))))

;;;
(define (init)
(form-bind "execute_command" "click" do-execute))
alterator-console-0.1.2/ui/console/index.html000064400000000000000000000017041231002237400212150ustar00rootroot00000000000000<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<!-- log viewer module -->
<html wf="none">
<body>
<form method="POST">
<table style="width:100%">
<tr>
<td style="white-space:nowrap;">
<span translate="_">Working directory:</span>&nbsp;<input type="text" name="wd" class="text" style="width:500px;"/>
</td>
</tr>
<tr>
<td colspan="2" style="width:100%">
<textarea name="output" style="width:99%;height:350px;font-family:'Droid Sans Mono','Liberation Sans Mono','DejaVu Sans Mono',Terminus,Courier,monospace;" readonly="yes"></textarea>
</td>
</tr>
<tr>
<td style="white-space:nowrap;">
<span translate="_">Command:</span>&nbsp;
<input type="text" name="command" class="text" style="width:600px;"/>
</td>
<td>
<input type="button" class="btn" name="execute_command" value="Run"/>
</td>
</tr>
</table>
</form>
</body>
</html>
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin