Refresh Pt 5

This commit is contained in:
Thomas Hounsell 2015-05-03 16:47:04 +01:00
parent 36514dc2ed
commit 17c4545146
60 changed files with 813 additions and 506 deletions

View File

@ -20,7 +20,7 @@ public ActionResult index()
public ActionResult admins()
{
List<MembershipUser> admins = new List<MembershipUser>();
foreach(var m in Roles.GetUsersInRole("Administrators"))
foreach (var m in Roles.GetUsersInRole("Administrators"))
{
admins.Add(Membership.GetUser(m));
}
@ -67,5 +67,20 @@ public ActionResult unlock(Guid id)
provider.ChangeLockStatus(id, false);
return RedirectToAction("Index");
}
public ActionResult cleanup()
{
var users = Membership.GetAllUsers();
foreach (MembershipUser user in users)
{
if(!user.IsApproved && (user.CreationDate.AddDays(30) < DateTime.Now))
{
Membership.DeleteUser(user.UserName);
}
}
return RedirectToAction("index");
}
}
}

View File

@ -8,6 +8,7 @@
<ul>
<li>@Html.ActionLink("View administrators", "admins")</li>
<li>@Html.ActionLink("Clean-up old unapproved users", "cleanup")</li>
<li>@Html.ActionLink("Return to admin panel", "index", "base")</li>
</ul>

View File

@ -23,6 +23,7 @@
<ApplicationInsightsResourceId>/subscriptions/4af45631-0e5c-4253-9e38-d0c47f9c5b32/resourcegroups/Default-ApplicationInsights-CentralUS/providers/microsoft.insights/components/BuildFeed</ApplicationInsightsResourceId>
<NuGetPackageImportStamp>ae3e548a</NuGetPackageImportStamp>
<TypeScriptToolsVersion>1.4</TypeScriptToolsVersion>
<UseGlobalApplicationHostFile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -192,6 +193,8 @@
<ItemGroup>
<Content Include="BingSiteAuth.xml" />
<Content Include="browserconfig.xml" />
<Content Include="content\icons-2x.png" />
<Content Include="content\icons.png" />
<Content Include="favicon.ico" />
<Content Include="Global.asax" />
<Content Include="content\style.css" />
@ -207,6 +210,50 @@
<Content Include="Areas\admin\Views\meta\create.cshtml" />
<Content Include="Scripts\jquery.validate.unobtrusive.js" />
<Content Include="Scripts\jquery.validate.unobtrusive.min.js" />
<Content Include="Scripts\trumbowyg\langs\ca.min.js" />
<Content Include="Scripts\trumbowyg\langs\cs.min.js" />
<Content Include="Scripts\trumbowyg\langs\da.min.js" />
<Content Include="Scripts\trumbowyg\langs\de.min.js" />
<Content Include="Scripts\trumbowyg\langs\es.min.js" />
<Content Include="Scripts\trumbowyg\langs\es_ar.min.js" />
<Content Include="Scripts\trumbowyg\langs\fa.min.js" />
<Content Include="Scripts\trumbowyg\langs\fi.min.js" />
<Content Include="Scripts\trumbowyg\langs\fr.min.js" />
<Content Include="Scripts\trumbowyg\langs\he.min.js" />
<Content Include="Scripts\trumbowyg\langs\id.min.js" />
<Content Include="Scripts\trumbowyg\langs\it.min.js" />
<Content Include="Scripts\trumbowyg\langs\ja.min.js" />
<Content Include="Scripts\trumbowyg\langs\ko.min.js" />
<Content Include="Scripts\trumbowyg\langs\nl.min.js" />
<Content Include="Scripts\trumbowyg\langs\pl.min.js" />
<Content Include="Scripts\trumbowyg\langs\pt.min.js" />
<Content Include="Scripts\trumbowyg\langs\ro.min.js" />
<Content Include="Scripts\trumbowyg\langs\rs.min.js" />
<Content Include="Scripts\trumbowyg\langs\rs_latin.min.js" />
<Content Include="Scripts\trumbowyg\langs\ru.min.js" />
<Content Include="Scripts\trumbowyg\langs\sk.min.js" />
<Content Include="Scripts\trumbowyg\langs\tr.min.js" />
<Content Include="Scripts\trumbowyg\langs\zh_cn.min.js" />
<Content Include="Scripts\trumbowyg\plugins\base64\trumbowyg.base64.js" />
<Content Include="Scripts\trumbowyg\plugins\base64\trumbowyg.base64.min.js" />
<Content Include="Scripts\trumbowyg\plugins\colors\trumbowyg.colors.js" />
<Content Include="Scripts\trumbowyg\plugins\colors\trumbowyg.colors.min.js" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\images\icons-black-2x.png" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\images\icons-black.png" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\images\icons-white-2x.png" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\images\icons-white.png" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\trumbowyg.colors.css" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\trumbowyg.colors.min.css" />
<Content Include="Scripts\trumbowyg\plugins\upload\trumbowyg.upload.js" />
<Content Include="Scripts\trumbowyg\plugins\upload\trumbowyg.upload.min.js" />
<Content Include="Scripts\trumbowyg\trumbowyg.js" />
<Content Include="Scripts\trumbowyg\trumbowyg.min.js" />
<Content Include="Scripts\trumbowyg\ui\images\icons-black-2x.png" />
<Content Include="Scripts\trumbowyg\ui\images\icons-black.png" />
<Content Include="Scripts\trumbowyg\ui\images\icons-white-2x.png" />
<Content Include="Scripts\trumbowyg\ui\images\icons-white.png" />
<Content Include="Scripts\trumbowyg\ui\trumbowyg.css" />
<Content Include="Scripts\trumbowyg\ui\trumbowyg.min.css" />
<Content Include="yandex_702baad42b020be7.html" />
<None Include="Properties\PublishProfiles\Milestone 1 FTP.pubxml" />
<Content Include="googleacffc6da14c53e15.html" />
@ -225,40 +272,6 @@
<Content Include="Scripts\jquery.validate.min.js" />
<Content Include="Scripts\jsrender.js" />
<Content Include="Scripts\jsrender.min.js" />
<Content Include="Scripts\trumbowyg\langs\ca.min.js" />
<Content Include="Scripts\trumbowyg\langs\da.min.js" />
<Content Include="Scripts\trumbowyg\langs\de.min.js" />
<Content Include="Scripts\trumbowyg\langs\es.min.js" />
<Content Include="Scripts\trumbowyg\langs\es_ar.min.js" />
<Content Include="Scripts\trumbowyg\langs\fa.min.js" />
<Content Include="Scripts\trumbowyg\langs\fi.min.js" />
<Content Include="Scripts\trumbowyg\langs\fr.min.js" />
<Content Include="Scripts\trumbowyg\langs\he.min.js" />
<Content Include="Scripts\trumbowyg\langs\id.min.js" />
<Content Include="Scripts\trumbowyg\langs\it.min.js" />
<Content Include="Scripts\trumbowyg\langs\ko.min.js" />
<Content Include="Scripts\trumbowyg\langs\pl.min.js" />
<Content Include="Scripts\trumbowyg\langs\pt.min.js" />
<Content Include="Scripts\trumbowyg\langs\ro.min.js" />
<Content Include="Scripts\trumbowyg\langs\ru.min.js" />
<Content Include="Scripts\trumbowyg\langs\tr.min.js" />
<Content Include="Scripts\trumbowyg\langs\zh_cn.min.js" />
<Content Include="Scripts\trumbowyg\plugins\base64\trumbowyg.base64.js" />
<Content Include="Scripts\trumbowyg\plugins\base64\trumbowyg.base64.min.js" />
<Content Include="Scripts\trumbowyg\plugins\colors\trumbowyg.colors.js" />
<Content Include="Scripts\trumbowyg\plugins\colors\trumbowyg.colors.min.js" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\images\icons-2x.png" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\images\icons.png" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\trumbowyg.colors.css" />
<Content Include="Scripts\trumbowyg\plugins\colors\ui\trumbowyg.colors.min.css" />
<Content Include="Scripts\trumbowyg\plugins\upload\trumbowyg.upload.js" />
<Content Include="Scripts\trumbowyg\plugins\upload\trumbowyg.upload.min.js" />
<Content Include="Scripts\trumbowyg\trumbowyg.js" />
<Content Include="Scripts\trumbowyg\trumbowyg.min.js" />
<Content Include="Scripts\trumbowyg\ui\images\icons-2x.png" />
<Content Include="Scripts\trumbowyg\ui\images\icons.png" />
<Content Include="Scripts\trumbowyg\ui\trumbowyg.css" />
<Content Include="Scripts\trumbowyg\ui\trumbowyg.min.css" />
<Content Include="Scripts\_references.js" />
<Content Include="content\tile\square.png" />
<Content Include="content\tile\tiny.png" />
@ -276,7 +289,7 @@
<Content Include="Views\_ViewStart.cshtml" />
<Content Include="Views\shared\error.cshtml" />
<Content Include="Views\shared\_default.cshtml" />
<Content Include="Views\build\create.cshtml" />
<Content Include="Views\front\editBuild.cshtml" />
<Content Include="Views\build\index.cshtml" />
<Content Include="Views\shared\DisplayTemplates\Enumeration.cshtml" />
<Content Include="Views\shared\EditorTemplates\Enumeration.cshtml" />
@ -309,7 +322,6 @@
</Content>
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Include="Scripts\index-page.ts" />
<TypeScriptCompile Include="Scripts\typings\jquery\jquery.d.ts" />
<TypeScriptCompile Include="Scripts\typings\jsrender\jsrender.d.ts" />
</ItemGroup>

View File

@ -13,13 +13,7 @@ public class buildController : Controller
public ActionResult index(int page = 1)
{
var builds = Build.SelectInBuildOrder();
var pageBuilds = builds.Skip((page - 1) * pageSize).Take(pageSize);
ViewBag.PageNumber = page;
ViewBag.PageCount = Math.Ceiling(Convert.ToDouble(builds.Count()) / Convert.ToDouble(pageSize));
return View(pageBuilds);
return RedirectToAction("index", "front");
}
public ActionResult year(int year, int page = 1)
@ -73,14 +67,7 @@ public ActionResult source(TypeOfSource source, int page = 1)
public ActionResult info(int id)
{
Build b = Build.SelectById(id);
if(b == null)
{
return new HttpNotFoundResult();
}
return View(b);
return RedirectToAction("viewBuild", "front");
}
//

View File

@ -34,33 +34,52 @@ bg.Key.Revision descending
return View(buildGroups);
}
[Route("group/{major}.{minor}.{number}.{revision}")]
[Route("group/{major}.{minor}.{number}.{revision}/")]
#if !DEBUG
[OutputCache(Duration = 600, VaryByParam = "none")]
#endif
public ActionResult viewGroup(byte major, byte minor, ushort number, ushort? revision = null)
{
var builds = (from b in Build.Select()
group b by new BuildGroup()
{
Major = b.MajorVersion,
Minor = b.MinorVersion,
Build = b.Number,
Revision = b.Revision
} into bg
where bg.Key.Major == major
where bg.Key.Minor == minor
where bg.Key.Build == number
where bg.Key.Revision == revision
select bg).Single();
group b by new BuildGroup()
{
Major = b.MajorVersion,
Minor = b.MinorVersion,
Build = b.Number,
Revision = b.Revision
} into bg
where bg.Key.Major == major
where bg.Key.Minor == minor
where bg.Key.Build == number
where bg.Key.Revision == revision
select bg).Single();
return builds.Count() == 1 ?
RedirectToAction("viewBuild", new { id = builds.Single().Id }) as ActionResult :
View(builds);
}
[Route("build/{id}")]
[Route("build/{id}/")]
#if !DEBUG
[OutputCache(Duration = 600, VaryByParam = "none")]
#endif
public ActionResult viewBuild(long id)
{
Build b = Build.SelectById(id);
return View(b);
}
[Route("add/")]
public ActionResult addBuild()
{
return View("editBuild");
}
[Route("edit/{id}/")]
public ActionResult editBuild(long id)
{
Build b = Build.SelectById(id);
return View(b);
}
}
}

Binary file not shown.

View File

@ -1,6 +0,0 @@
/// <reference path="typings/jquery/jquery.d.ts" />
/// <reference path="typings/jsrender/jsrender.d.ts" />
class IndexPage {
private panelSelector: string = "#expand-panel";
}

View File

@ -8,4 +8,4 @@
* Website : about.me/alsanan
* Github : https://github.com/alsanan
*/
jQuery.trumbowyg.langs.ca={viewHTML:"Veure HTML",formatting:"Formatar",p:"Paragraf",blockquote:"Citació",code:"Codi",header:"Títol",bold:"Negreta",italic:"Itàlica",strikethrough:"Suprimir",underline:"Subratllat",strong:"Forta",em:"Èmfasi",del:"Apagar",unorderedList:"Lista desordenada",orderedList:"Lista ordenada",insertImage:"Inserir imatge",insertVideo:"Inserir vídeo",link:"Enllaç",createLink:"Crear un enllaç",unlink:"Eliminar enllaç",justifyLeft:"Alinear a esquerra",justifyCenter:"Centrar",justifyRight:"Alinear a dreta",justifyFull:"Justificar",horizontalRule:"Inserir separador horitzontal",fullscreen:"Pantalla completa",close:"Tancar",submit:"Enviar",reset:"Reiniciar",invalidUrl:"URL invàlida",required:"Obligatori",description:"Descripció",title:"Títol",text:"Text"};
jQuery.trumbowyg.langs.ca={viewHTML:"Veure HTML",formatting:"Formatar",p:"Paragraf",blockquote:"Citació",code:"Codi",header:"Títol",bold:"Negreta",italic:"Itàlica",strikethrough:"Suprimir",underline:"Subratllat",strong:"Forta",em:"Èmfasi",del:"Apagar",unorderedList:"Lista desordenada",orderedList:"Lista ordenada",insertImage:"Inserir imatge",insertVideo:"Inserir vídeo",link:"Enllaç",createLink:"Crear un enllaç",unlink:"Eliminar enllaç",justifyLeft:"Alinear a esquerra",justifyCenter:"Centrar",justifyRight:"Alinear a dreta",justifyFull:"Justificar",horizontalRule:"Inserir separador horitzontal",fullscreen:"Pantalla completa",close:"Tancar",submit:"Enviar",reset:"Reiniciar",required:"Obligatori",description:"Descripció",title:"Títol",text:"Text"};

8
Scripts/trumbowyg/langs/cs.min.js vendored Normal file
View File

@ -0,0 +1,8 @@
/* ===========================================================
* cs.js
* Czech translation for Trumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : Jan Svoboda (https://github.com/svoboda-jan)
*/
jQuery.trumbowyg.langs.cs={viewHTML:"Zobrazit HTML",formatting:"Formátování",p:"Odstavec",blockquote:"Citace",code:"Kód",header:"Nadpis",bold:"Tučné",italic:"Kurzíva",strikethrough:"Přeškrtnuté",underline:"Podtržené",strong:"Tučné",em:"Zvýraznit",del:"Smazat",unorderedList:"Netříděný seznam",orderedList:"Tříděný seznam",insertImage:"Vložit obrázek",insertVideo:"Vložit video",link:"Odkaz",createLink:"Vložit odkaz",unlink:"Smazat odkaz",justifyLeft:"Zarovnat doleva",justifyCenter:"Zarovnat na střed",justifyRight:"Zarovnat doprava",justifyFull:"Zarovnat do bloku",horizontalRule:"Vložit vodorovnou čáru",fullscreen:"Režim celé obrazovky",close:"Zavřít",submit:"Potvrdit",reset:"Zrušit",required:"Povinné",description:"Popis",title:"Nadpis",text:"Text"};

View File

@ -6,4 +6,4 @@
* Author : Christian Pedersen
* Github : https://github.com/chripede
*/
jQuery.trumbowyg.langs.da={viewHTML:"Vis HTML",formatting:"Formatter",p:"Afsnit",blockquote:"Citat",code:"Kode",header:"Overskrift",bold:"Fed",italic:"Kursiv",strikethrough:"Gennemstreg",underline:"Understreg",strong:"Vigtig",em:"Fremhæv",del:"Slettet",unorderedList:"Uordnet liste",orderedList:"Ordnet liste",insertImage:"Indsæt billede",insertVideo:"Indsæt video",link:"Link",createLink:"Indsæt link",unlink:"Fjern link",justifyLeft:"Venstrestil",justifyCenter:"Centrer",justifyRight:"Højrestil",justifyFull:"Lige margener",horizontalRule:"Horisontal linie",fullscreen:"Fuld skærm",close:"Luk",submit:"Bekræft",reset:"Annuller",invalidUrl:"Ugyldig URL",required:"Påkrævet",description:"Beskrivelse",title:"Titel",text:"Tekst"};
jQuery.trumbowyg.langs.da={viewHTML:"Vis HTML",formatting:"Formatter",p:"Afsnit",blockquote:"Citat",code:"Kode",header:"Overskrift",bold:"Fed",italic:"Kursiv",strikethrough:"Gennemstreg",underline:"Understreg",strong:"Vigtig",em:"Fremhæv",del:"Slettet",unorderedList:"Uordnet liste",orderedList:"Ordnet liste",insertImage:"Indsæt billede",insertVideo:"Indsæt video",link:"Link",createLink:"Indsæt link",unlink:"Fjern link",justifyLeft:"Venstrestil",justifyCenter:"Centrer",justifyRight:"Højrestil",justifyFull:"Lige margener",horizontalRule:"Horisontal linie",fullscreen:"Fuld skærm",close:"Luk",submit:"Bekræft",reset:"Annuller",required:"Påkrævet",description:"Beskrivelse",title:"Titel",text:"Tekst"};

View File

@ -6,4 +6,4 @@
* Author : Manfred Timm
* Github : https://github.com/Manfred62
*/
jQuery.trumbowyg.langs.de={viewHTML:"HTML anzeigen",formatting:"Formatieren",p:"Absatz",blockquote:"Zitat",code:"Code",header:"Überschrift",bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",underline:"Unterstrichen",strong:"Wichtig",em:"Betont",del:"Gelöscht",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",insertImage:"Bild einfügen",insertVideo:"Video einfügen",link:"Link",createLink:"Link einfügen",unlink:"Link entfernen",justifyLeft:"Links ausrichten",justifyCenter:"Zentrieren",justifyRight:"Rechts ausrichten",justifyFull:"Blocksatz",horizontalRule:"Horizontale Linie einfügen",fullscreen:"Vollbild",close:"Schliessen",submit:"Bestätigen",reset:"Rücksetzen",invalidUrl:"Ungültige URL",required:"Erforderlich",description:"Beschreibung",title:"Titel",text:"Text"};
jQuery.trumbowyg.langs.de={viewHTML:"HTML anzeigen",formatting:"Formatieren",p:"Absatz",blockquote:"Zitat",code:"Code",header:"Überschrift",bold:"Fett",italic:"Kursiv",strikethrough:"Durchgestrichen",underline:"Unterstrichen",strong:"Wichtig",em:"Betont",del:"Gelöscht",unorderedList:"Ungeordnete Liste",orderedList:"Geordnete Liste",insertImage:"Bild einfügen",insertVideo:"Video einfügen",link:"Link",createLink:"Link einfügen",unlink:"Link entfernen",justifyLeft:"Links ausrichten",justifyCenter:"Zentrieren",justifyRight:"Rechts ausrichten",justifyFull:"Blocksatz",horizontalRule:"Horizontale Linie einfügen",fullscreen:"Vollbild",close:"Schliessen",submit:"Bestätigen",reset:"Rücksetzen",required:"Erforderlich",description:"Beschreibung",title:"Titel",text:"Text"};

View File

@ -6,4 +6,4 @@
* Author : Moisés Márquez
* Email : moises.marquez.g@gmail.com
*/
jQuery.trumbowyg.langs.es={viewHTML:"Ver HTML",formatting:"Formato",p:"Párrafo",blockquote:"Cita",code:"Código",header:"Título",bold:"Negrita",italic:"Cursiva",strikethrough:"Tachado",underline:"Subrayado",strong:"Negrita",em:"Énfasis",del:"Borrar",unorderedList:"Lista Desordenada",orderedList:"Lista Ordenada",insertImage:"Insertar una imagen",insertVideo:"Insertar un vídeo",link:"Enlace",createLink:"Insertar un enlace",unlink:"Suprimir un enlace",justifyLeft:"Izquierda",justifyCenter:"Centrar",justifyRight:"Derecha",justifyFull:"Justificado",horizontalRule:"Insertar separador horizontal",fullscreen:"Pantalla completa",close:"Cerrar",submit:"Enviar",reset:"Cancelar",invalidUrl:"URL no válida",required:"Obligatorio",description:"Descripción",title:"Título",text:"Texto"};
jQuery.trumbowyg.langs.es={viewHTML:"Ver HTML",formatting:"Formato",p:"Párrafo",blockquote:"Cita",code:"Código",header:"Título",bold:"Negrita",italic:"Cursiva",strikethrough:"Tachado",underline:"Subrayado",strong:"Negrita",em:"Énfasis",del:"Borrar",unorderedList:"Lista Desordenada",orderedList:"Lista Ordenada",insertImage:"Insertar una imagen",insertVideo:"Insertar un vídeo",link:"Enlace",createLink:"Insertar un enlace",unlink:"Suprimir un enlace",justifyLeft:"Izquierda",justifyCenter:"Centrar",justifyRight:"Derecha",justifyFull:"Justificado",horizontalRule:"Insertar separador horizontal",fullscreen:"Pantalla completa",close:"Cerrar",submit:"Enviar",reset:"Cancelar",required:"Obligatorio",description:"Descripción",title:"Título",text:"Texto"};

View File

@ -6,4 +6,4 @@
* Author : Félix Vera
* Email : felix.vera@gmail.com
*/
jQuery.trumbowyg.langs.es_ar={viewHTML:"Ver HTML",formatting:"Formato",p:"Párrafo",blockquote:"Cita",code:"Código",header:"Título",bold:"Negrita",italic:"Itálica",strikethrough:"Tachado",underline:"Subrayado",strong:"Fuere",em:"Énfasis",del:"Borrar",unorderedList:"Lista Desordenada",orderedList:"Lista Ordenada",insertImage:"Insertar una imagen",insertVideo:"Insertar un video",link:"Vínculo",createLink:"Insertar un vínculo",unlink:"Suprimir un vínculo",justifyLeft:"Alinear a la Izquierda",justifyCenter:"Centrar",justifyRight:"Alinear a la Derecha",justifyFull:"Justificado",horizontalRule:"Insertar separado Horizontal",fullscreen:"Pantalla Completa",close:"Cerrar",submit:"Enviar",reset:"Cancelar",invalidUrl:"URL inválida",required:"Obligatorio",description:"Descripción",title:"Título",text:"Texto"};
jQuery.trumbowyg.langs.es_ar={viewHTML:"Ver HTML",formatting:"Formato",p:"Párrafo",blockquote:"Cita",code:"Código",header:"Título",bold:"Negrita",italic:"Itálica",strikethrough:"Tachado",underline:"Subrayado",strong:"Fuere",em:"Énfasis",del:"Borrar",unorderedList:"Lista Desordenada",orderedList:"Lista Ordenada",insertImage:"Insertar una imagen",insertVideo:"Insertar un video",link:"Vínculo",createLink:"Insertar un vínculo",unlink:"Suprimir un vínculo",justifyLeft:"Alinear a la Izquierda",justifyCenter:"Centrar",justifyRight:"Alinear a la Derecha",justifyFull:"Justificado",horizontalRule:"Insertar separado Horizontal",fullscreen:"Pantalla Completa",close:"Cerrar",submit:"Enviar",reset:"Cancelar",required:"Obligatorio",description:"Descripción",title:"Título",text:"Texto"};

View File

@ -7,4 +7,4 @@
* Github : https://github.com/kiyarash
* Email : kiarash.s@hotmail.com
*/
jQuery.trumbowyg.langs.fa={viewHTML:"نمایش کد اچ تی ام ال",formatting:"قالب بندی",p:"پاراگراف",blockquote:"نقل قول",code:"کد",header:"سر تیتر",bold:"ضخیم",italic:"مورب",strikethrough:"میان خط دار",underline:"زیر خط دار",strong:"برجسته",em:"مورب",del:"حذف شده",unorderedList:"لیست نامرتب",orderedList:"لیست مرتب",insertImage:"درج تصویر",insertVideo:"درج ویدئو",link:"لینک",createLink:"درج لینک",unlink:"حذف لینک",justifyLeft:"تراز به چپ",justifyCenter:"تراز به وسط",justifyRight:"تراز به راست",justifyFull:"تراز به چپ و راست",horizontalRule:"درج خط افقی",fullscreen:"تمام صفحه",close:"بستن",submit:"تائید",reset:"انصراف",invalidUrl:"لینک نامعتبر",required:"اجباری",description:"توضیحات",title:"عنوان",text:"متن"};
jQuery.trumbowyg.langs.fa={viewHTML:"نمایش کد اچ تی ام ال",formatting:"قالب بندی",p:"پاراگراف",blockquote:"نقل قول",code:"کد",header:"سر تیتر",bold:"ضخیم",italic:"مورب",strikethrough:"میان خط دار",underline:"زیر خط دار",strong:"برجسته",em:"مورب",del:"حذف شده",unorderedList:"لیست نامرتب",orderedList:"لیست مرتب",insertImage:"درج تصویر",insertVideo:"درج ویدئو",link:"لینک",createLink:"درج لینک",unlink:"حذف لینک",justifyLeft:"تراز به چپ",justifyCenter:"تراز به وسط",justifyRight:"تراز به راست",justifyFull:"تراز به چپ و راست",horizontalRule:"درج خط افقی",fullscreen:"تمام صفحه",close:"بستن",submit:"تائید",reset:"انصراف",required:"اجباری",description:"توضیحات",title:"عنوان",text:"متن"};

View File

@ -6,4 +6,4 @@
* Author : Teppo Koivula (teppokoivula)
* Github : https://github.com/teppokoivula
*/
jQuery.trumbowyg.langs.fi={viewHTML:"Näytä HTML",formatting:"Muotoilu",p:"Kappale",blockquote:"Lainaus",code:"Koodi",header:"Otsikko",bold:"Lihavointi",italic:"Kursivointi",strikethrough:"Yliviivaus",underline:"Allevivaus",strong:"Vahvennus",em:"Painotus",del:"Poistettu",unorderedList:"Numeroimaton lista",orderedList:"Numeroitu lista",insertImage:"Lisää kuva",insertVideo:"Lisää video",link:"Linkki",createLink:"Luo linkki",unlink:"Poista linkki",justifyLeft:"Asemoi vasemmalle",justifyCenter:"Keskitä",justifyRight:"Asemoi oikealle",justifyFull:"Tasaa",horizontalRule:"Vaakaviiva",fullscreen:"Kokoruutu",close:"Sulje",submit:"Lähetä",reset:"Palauta",invalidUrl:"Viallinen URL-osoite",required:"Pakollinen",description:"Kuvaus",title:"Otsikko",text:"Teksti"};
jQuery.trumbowyg.langs.fi={viewHTML:"Näytä HTML",formatting:"Muotoilu",p:"Kappale",blockquote:"Lainaus",code:"Koodi",header:"Otsikko",bold:"Lihavointi",italic:"Kursivointi",strikethrough:"Yliviivaus",underline:"Allevivaus",strong:"Vahvennus",em:"Painotus",del:"Poistettu",unorderedList:"Numeroimaton lista",orderedList:"Numeroitu lista",insertImage:"Lisää kuva",insertVideo:"Lisää video",link:"Linkki",createLink:"Luo linkki",unlink:"Poista linkki",justifyLeft:"Asemoi vasemmalle",justifyCenter:"Keskitä",justifyRight:"Asemoi oikealle",justifyFull:"Tasaa",horizontalRule:"Vaakaviiva",fullscreen:"Kokoruutu",close:"Sulje",submit:"Lähetä",reset:"Palauta",required:"Pakollinen",description:"Kuvaus",title:"Otsikko",text:"Teksti"};

View File

@ -7,4 +7,4 @@
* Twitter : @AlexandreDemode
* Website : alex-d.fr
*/
jQuery.trumbowyg.langs.fr={viewHTML:"Voir le HTML",formatting:"Format",p:"Paragraphe",blockquote:"Citation",code:"Code",header:"Titre",bold:"Gras",italic:"Italique",strikethrough:"Rayé",underline:"Souligné",strong:"Fort",em:"Emphase",del:"Supprimé",unorderedList:"Liste à puces",orderedList:"Liste ordonnée",insertImage:"Insérer une image",insertVideo:"Insérer une video",link:"Lien",createLink:"Insérer un lien",unlink:"Supprimer le lien",justifyLeft:"Aligner à gauche",justifyCenter:"Centrer",justifyRight:"Aligner à droite",justifyFull:"Justifier",horizontalRule:"Insérer un séparateur horizontal",fullscreen:"Plein écran",close:"Fermer",submit:"Valider",reset:"Annuler",invalidUrl:"URL invalide",required:"Obligatoire",description:"Description",title:"Titre",text:"Texte"};
jQuery.trumbowyg.langs.fr={viewHTML:"Voir le HTML",formatting:"Format",p:"Paragraphe",blockquote:"Citation",code:"Code",header:"Titre",bold:"Gras",italic:"Italique",strikethrough:"Rayé",underline:"Souligné",strong:"Fort",em:"Emphase",del:"Supprimé",unorderedList:"Liste à puces",orderedList:"Liste ordonnée",insertImage:"Insérer une image",insertVideo:"Insérer une video",link:"Lien",createLink:"Insérer un lien",unlink:"Supprimer le lien",justifyLeft:"Aligner à gauche",justifyCenter:"Centrer",justifyRight:"Aligner à droite",justifyFull:"Justifier",horizontalRule:"Insérer un séparateur horizontal",fullscreen:"Plein écran",close:"Fermer",submit:"Valider",reset:"Annuler",required:"Obligatoire",description:"Description",title:"Titre",text:"Texte"};

View File

@ -6,4 +6,4 @@
* Author : Udi Doron (udidoron)
* Github : https://github.com/udidoron
*/
jQuery.trumbowyg.langs.he={_dir:"rtl",viewHTML:"צפה ב-HTML",formatting:"פורמט",p:"פסקה",blockquote:"ציטוט",code:"קוד",header:"ראשית",bold:"מודגש",italic:"נטוי",strikethrough:"קו חוצה",underline:"קו תחתון",strong:"בולט",em:"הדגשה",del:"נמחק",unorderedList:"רשימה ללא סדר",orderedList:"רשימה מסודרת",insertImage:"הכנס תמונה",insertVideo:"הכנס סרטון",link:"קישור",createLink:"צור קישור",unlink:"הסר קישור",justifyLeft:"ישר לשמאל",justifyCenter:"מרכז",justifyRight:"ישר לימין",justifyFull:"ישר לשני הצדדים",horizontalRule:"הכנס קו אופקי",fullscreen:"מסך מלא",close:"סגור",submit:"שלח",reset:"אתחל מחדש",invalidUrl:"כתובת אתר לא תקינה",required:"נחוץ",description:"תיאור",title:"כותרת",text:"טקסט"};
jQuery.trumbowyg.langs.he={_dir:"rtl",viewHTML:"צפה ב-HTML",formatting:"פורמט",p:"פסקה",blockquote:"ציטוט",code:"קוד",header:"ראשית",bold:"מודגש",italic:"נטוי",strikethrough:"קו חוצה",underline:"קו תחתון",strong:"בולט",em:"הדגשה",del:"נמחק",unorderedList:"רשימה ללא סדר",orderedList:"רשימה מסודרת",insertImage:"הכנס תמונה",insertVideo:"הכנס סרטון",link:"קישור",createLink:"צור קישור",unlink:"הסר קישור",justifyLeft:"ישר לשמאל",justifyCenter:"מרכז",justifyRight:"ישר לימין",justifyFull:"ישר לשני הצדדים",horizontalRule:"הכנס קו אופקי",fullscreen:"מסך מלא",close:"סגור",submit:"שלח",reset:"אתחל מחדש",required:"נחוץ",description:"תיאור",title:"כותרת",text:"טקסט"};

View File

@ -8,4 +8,4 @@
* Website : http://rezhajulio.web.id
* Github : https://github.com/kimiamania
*/
jQuery.trumbowyg.langs.id={viewHTML:"Lihat HTML",formatting:"Penyusunan",p:"Paragraf",blockquote:"Kutipan",code:"Kode",header:"Kepala",bold:"Tebal",italic:"Miring",strikethrough:"Coret",underline:"Garis bawah",strong:"Tebal",em:"Miring",del:"Dicoret",unorderedList:"Daftar tak teratur",orderedList:"Daftar teratur",insertImage:"Sisipkan gambar",insertVideo:"Sisipkan video",link:"Tautan",createLink:"Sisipkan Tautan",unlink:"Singkirkan tautan",justifyLeft:"Rata kiri",justifyCenter:"Rata Tengah",justifyRight:"Rata kanan",justifyFull:"Rata kiri dan kanan",horizontalRule:"Sisipkan garis mendatar",fullscreen:"Layar penuh",close:"Tutup",submit:"Setuju",reset:"Batal",invalidUrl:"Tautan salah",required:"Diperlukan",description:"Deskripsi",title:"Judul",text:"Teks"};
jQuery.trumbowyg.langs.id={viewHTML:"Lihat HTML",formatting:"Penyusunan",p:"Paragraf",blockquote:"Kutipan",code:"Kode",header:"Kepala",bold:"Tebal",italic:"Miring",strikethrough:"Coret",underline:"Garis bawah",strong:"Tebal",em:"Miring",del:"Dicoret",unorderedList:"Daftar tak teratur",orderedList:"Daftar teratur",insertImage:"Sisipkan gambar",insertVideo:"Sisipkan video",link:"Tautan",createLink:"Sisipkan Tautan",unlink:"Singkirkan tautan",justifyLeft:"Rata kiri",justifyCenter:"Rata Tengah",justifyRight:"Rata kanan",justifyFull:"Rata kiri dan kanan",horizontalRule:"Sisipkan garis mendatar",fullscreen:"Layar penuh",close:"Tutup",submit:"Setuju",reset:"Batal",required:"Diperlukan",description:"Deskripsi",title:"Judul",text:"Teks"};

View File

@ -5,4 +5,4 @@
* ===========================================================
* Author : Mirko Buffoni
*/
jQuery.trumbowyg.langs.it={viewHTML:"Mostra HTML",formatting:"Formattazione",p:"Paragrafo",blockquote:"Citazione",code:"Codice",header:"Intestazione",bold:"Grassetto",italic:"Italico",strikethrough:"Barrato",underline:"Sottolineato",strong:"Rafforza",em:"Enfatizza",del:"Cancella",unorderedList:"Elenco puntato",orderedList:"Elenco numerato",insertImage:"Inserisci immagine",insertVideo:"Inserisci video",link:"Collegamento",createLink:"Crea un collegamento",unlink:"Elimina collegamento",justifyLeft:"Allinea a sinistra",justifyCenter:"Centra",justifyRight:"Allinea a destra",justifyFull:"Giustifica",horizontalRule:"Inserisci un separatore orizzontale",fullscreen:"Schermo intero",close:"Chiudi",submit:"Invia",reset:"Annulla",invalidUrl:"URL invalido",required:"Obbligatorio",description:"Descrizione",title:"Titolo",text:"Testo"};
jQuery.trumbowyg.langs.it={viewHTML:"Mostra HTML",formatting:"Formattazione",p:"Paragrafo",blockquote:"Citazione",code:"Codice",header:"Intestazione",bold:"Grassetto",italic:"Italico",strikethrough:"Barrato",underline:"Sottolineato",strong:"Rafforza",em:"Enfatizza",del:"Cancella",unorderedList:"Elenco puntato",orderedList:"Elenco numerato",insertImage:"Inserisci immagine",insertVideo:"Inserisci video",link:"Collegamento",createLink:"Crea un collegamento",unlink:"Elimina collegamento",justifyLeft:"Allinea a sinistra",justifyCenter:"Centra",justifyRight:"Allinea a destra",justifyFull:"Giustifica",horizontalRule:"Inserisci un separatore orizzontale",fullscreen:"Schermo intero",close:"Chiudi",submit:"Invia",reset:"Annulla",required:"Obbligatorio",description:"Descrizione",title:"Titolo",text:"Testo"};

10
Scripts/trumbowyg/langs/ja.min.js vendored Normal file
View File

@ -0,0 +1,10 @@
/* ===========================================================
* ja.js
* Japanese translation for Trumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : Kouta Fukuhara (foo9)
* Twitter : @foo9
* Website : https://github.com/foo9
*/
jQuery.trumbowyg.langs.ja={viewHTML:"HTML表示",formatting:"フォーマット",p:"段落",blockquote:"引用",code:"コード",header:"見出し",bold:"太字",italic:"斜体",strikethrough:"取り消し線",underline:"下線",strong:"太字",em:"斜体",del:"取り消し線",unorderedList:"順序なしリスト",orderedList:"順序ありリスト",insertImage:"画像の挿入",insertVideo:"動画の挿入",link:"リンク",createLink:"リンクの作成",unlink:"リンクの削除",justifyLeft:"左揃え",justifyCenter:"中央揃え",justifyRight:"右揃え",justifyFull:"両端揃え",horizontalRule:"横罫線",fullscreen:"全画面表示",close:"閉じる",submit:"送信",reset:"キャンセル",required:"必須",description:"説明",title:"タイトル",text:"テキスト"};

View File

@ -7,4 +7,4 @@
* Blog : http://dorajistyle.pe.kr
* Github : https://github.com/dorajistyle
*/
jQuery.trumbowyg.langs.ko={viewHTML:"HTML로 보기",formatting:"양식",p:"문단",blockquote:"인용부호",code:"코드",header:"머릿말",bold:"진하게",italic:"기울임",strikethrough:"취소선",underline:"밑줄",strong:"굵게",em:"강조",del:"취소",unorderedList:"순차 목록",orderedList:"비순차 목록",insertImage:"이미지 넣기",insertVideo:"비디오 넣기",link:"링크",createLink:"링크 넣기",unlink:"링크 없애기",justifyLeft:"왼쪽 정렬",justifyCenter:"가운데 정렬",justifyRight:"오른쪽 정렬",justifyFull:"혼합 정렬",horizontalRule:"가로줄 넣기",fullscreen:"전체 화면",close:"닫기",submit:"전송",reset:"초기화",invalidUrl:"올바르지 않은 URL입니다.",required:"꼭 입력해야 합니다.",description:"설명",title:"제목",text:"본문 내용"};
jQuery.trumbowyg.langs.ko={viewHTML:"HTML로 보기",formatting:"양식",p:"문단",blockquote:"인용부호",code:"코드",header:"머릿말",bold:"진하게",italic:"기울임",strikethrough:"취소선",underline:"밑줄",strong:"굵게",em:"강조",del:"취소",unorderedList:"순차 목록",orderedList:"비순차 목록",insertImage:"이미지 넣기",insertVideo:"비디오 넣기",link:"링크",createLink:"링크 넣기",unlink:"링크 없애기",justifyLeft:"왼쪽 정렬",justifyCenter:"가운데 정렬",justifyRight:"오른쪽 정렬",justifyFull:"혼합 정렬",horizontalRule:"가로줄 넣기",fullscreen:"전체 화면",close:"닫기",submit:"전송",reset:"초기화",required:"꼭 입력해야 합니다.",description:"설명",title:"제목",text:"본문 내용"};

9
Scripts/trumbowyg/langs/nl.min.js vendored Normal file
View File

@ -0,0 +1,9 @@
/* ===========================================================
* nl.js
* Dutch translation for Trumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : Danny Hiemstra
* Github : https://github.com/dhiemstra
*/
jQuery.trumbowyg.langs.nl={viewHTML:"HTML bekijken",formatting:"Opmaak",p:"Paragraaf",blockquote:"Citaat",code:"Code",header:"Kop",bold:"Vet",italic:"Cursief",strikethrough:"Doorhalen",underline:"Onderlijnen",strong:"Sterk",em:"Nadruk",del:"Verwijderd",unorderedList:"Ongenummerde lijst",orderedList:"Genummerde lijst",insertImage:"Afbeelding invoegen",insertVideo:"Video invoegen",link:"Link",createLink:"Link maken",unlink:"Link verwijderen",justifyLeft:"Links uitlijnen",justifyCenter:"Centreren",justifyRight:"Rechts uitlijnen",justifyFull:"Uitvullen",horizontalRule:"Horizontale lijn",removeFormat:"Opmaak verwijderen",fullscreen:"Volledig scherm",close:"Sluiten",submit:"Verzenden",reset:"Herstellen",required:"Verplicht",description:"Omschrijving",title:"Titel",text:"Tekst"};

View File

@ -6,4 +6,4 @@
* Author : Paweł Abramowicz
* Github : https://github.com/pawelabrams
*/
jQuery.trumbowyg.langs.pl={viewHTML:"Pokaż HTML",formatting:"Format",p:"Akapit",blockquote:"Cytat",code:"Kod",header:"Nagłówek",bold:"Pogrubienie",italic:"Pochylenie",strikethrough:"Przekreślenie",underline:"Podkreślenie",strong:"Wytłuszczenie",em:"Uwydatnienie",del:"Usunięte",unorderedList:"Lista nieuporządkowana",orderedList:"Lista uporządkowana",insertImage:"Wstaw obraz",insertVideo:"Wstaw film",link:"Link",createLink:"Wstaw link",unlink:"Usuń link",justifyLeft:"Wyrównaj do lewej",justifyCenter:"Wyśrodkuj",justifyRight:"Wyrównaj do prawej",justifyFull:"Wyjustuj",horizontalRule:"Odkreśl linią",fullscreen:"Pełny ekran",close:"Zamknij",submit:"Zastosuj",reset:"Przywróć",invalidUrl:"Nieprawidłowy URL",required:"Wymagane",description:"Opis",title:"Tytuł",text:"Tekst"};
jQuery.trumbowyg.langs.pl={viewHTML:"Pokaż HTML",formatting:"Format",p:"Akapit",blockquote:"Cytat",code:"Kod",header:"Nagłówek",bold:"Pogrubienie",italic:"Pochylenie",strikethrough:"Przekreślenie",underline:"Podkreślenie",strong:"Wytłuszczenie",em:"Uwydatnienie",del:"Usunięte",unorderedList:"Lista nieuporządkowana",orderedList:"Lista uporządkowana",insertImage:"Wstaw obraz",insertVideo:"Wstaw film",link:"Link",createLink:"Wstaw link",unlink:"Usuń link",justifyLeft:"Wyrównaj do lewej",justifyCenter:"Wyśrodkuj",justifyRight:"Wyrównaj do prawej",justifyFull:"Wyjustuj",horizontalRule:"Odkreśl linią",fullscreen:"Pełny ekran",close:"Zamknij",submit:"Zastosuj",reset:"Przywróć",required:"Wymagane",description:"Opis",title:"Tytuł",text:"Tekst"};

View File

@ -8,4 +8,4 @@
* Website : about.me/ramirovjnr
* Github : https://github.com/ramirovjr
*/
jQuery.trumbowyg.langs.pt={viewHTML:"Ver HTML",formatting:"Formatar",p:"Paragráfo",blockquote:"Citação",code:"Código",header:"Título",bold:"Negrito",italic:"Itálico",strikethrough:"Suprimir",underline:"Sublinhado",strong:"Forte",em:"Ênfase",del:"Apagar",unorderedList:"Lista não ordenada",orderedList:"Liste ordenada",insertImage:"Inserir imagem",insertVideo:"Inserir vídeo",link:"Link",createLink:"Criar um link",unlink:"Remover link",justifyLeft:"Alinhar a esquerda",justifyCenter:"Centralizar",justifyRight:"Alinhar a direita",justifyFull:"Justificar",horizontalRule:"Inserir separador horizontal",fullscreen:"Tela cheia",close:"Fechar",submit:"Enviar",reset:"Limpar",invalidUrl:"URL inválida",required:"Obrigatório",description:"Descrição",title:"Título",text:"Texto"};
jQuery.trumbowyg.langs.pt={viewHTML:"Ver HTML",formatting:"Formatar",p:"Paragráfo",blockquote:"Citação",code:"Código",header:"Título",bold:"Negrito",italic:"Itálico",strikethrough:"Suprimir",underline:"Sublinhado",strong:"Forte",em:"Ênfase",del:"Apagar",unorderedList:"Lista não ordenada",orderedList:"Liste ordenada",insertImage:"Inserir imagem",insertVideo:"Inserir vídeo",link:"Link",createLink:"Criar um link",unlink:"Remover link",justifyLeft:"Alinhar a esquerda",justifyCenter:"Centralizar",justifyRight:"Alinhar a direita",justifyFull:"Justificar",horizontalRule:"Inserir separador horizontal",fullscreen:"Tela cheia",close:"Fechar",submit:"Enviar",reset:"Limpar",required:"Obrigatório",description:"Descrição",title:"Título",text:"Texto"};

View File

@ -10,4 +10,4 @@
* Website : creative-studio51.co.uk
* Github : https://github.com/pacMakaveli
*/
jQuery.trumbowyg.langs.pt={viewHTML:"Vizualizare HTML",formatting:"Format",p:"Paragraf",blockquote:"Citație",code:"Cod",header:"Titlu",bold:"Bold",italic:"Italic",strikethrough:"Tăiat",underline:"Subliniat",strong:"Puternic",em:"Accentuat",del:"Sterge",unorderedList:"Lista dezordonată",orderedList:"Liste ordonată",insertImage:"Adăugare Imagine",insertVideo:"Adăugare Video",link:"Link",createLink:"Crează link",unlink:"Remover link",justifyLeft:"Aliniază stânga",justifyCenter:"Aliniază centru",justifyRight:"Aliniază dreapta",justifyFull:"Justificare",horizontalRule:"Linie orizontală",fullscreen:"Tot ecranul",close:"Închide",submit:"Procesează",reset:"Resetează",invalidUrl:"URL invalid",required:"Obligatoriu",description:"Descriere",title:"Titlu",text:"Text"};
jQuery.trumbowyg.langs.pt={viewHTML:"Vizualizare HTML",formatting:"Format",p:"Paragraf",blockquote:"Citație",code:"Cod",header:"Titlu",bold:"Bold",italic:"Italic",strikethrough:"Tăiat",underline:"Subliniat",strong:"Puternic",em:"Accentuat",del:"Sterge",unorderedList:"Lista dezordonată",orderedList:"Liste ordonată",insertImage:"Adăugare Imagine",insertVideo:"Adăugare Video",link:"Link",createLink:"Crează link",unlink:"Remover link",justifyLeft:"Aliniază stânga",justifyCenter:"Aliniază centru",justifyRight:"Aliniază dreapta",justifyFull:"Justificare",horizontalRule:"Linie orizontală",fullscreen:"Tot ecranul",close:"Închide",submit:"Procesează",reset:"Resetează",required:"Obligatoriu",description:"Descriere",title:"Titlu",text:"Text"};

8
Scripts/trumbowyg/langs/rs.min.js vendored Normal file
View File

@ -0,0 +1,8 @@
/* ===========================================================
* rs.js
* Serbian (Cyrlic) translation for Trumbowyg
* https://www.github.com/johonunu
* ===========================================================
* Author : Nikola Trifunovic (https://www.github.com/johonunu)
*/
jQuery.trumbowyg.langs.rs={viewHTML:"Погледај HTML кóд",formatting:"Форматирање",p:"Параграф",blockquote:"Цитат",code:"Кóд",header:"Наслов",bold:"Подебљано",italic:"Курзив",strikethrough:"Прецртано",underline:"Подвучено",strong:"Подебљано",em:"Истакнуто",del:"Обрисано",unorderedList:"Ненабројива листа",orderedList:"Набројива листа",insertImage:"Унеси слику",insertVideo:"Унеси видео",link:"Линк",createLink:"Унеси линк",unlink:"Уклони линк",justifyLeft:"Лево равнање",justifyCenter:"Централно равнање",justifyRight:"Десно равнање",justifyFull:"Обострано равнање",horizontalRule:"Хоризонтална линија",fullscreen:"Режим читавог екрана",close:"Затвори",submit:"Унеси",reset:"Откажи",required:"Обавезно поље",invalidUrl:"URL",description:"Опис",title:"Наслов",text:"Текст"};

View File

@ -0,0 +1,8 @@
/* ===========================================================
* rs_latin.js
* Serbian (Latin) translation for Trumbowyg
* https://www.github.com/johonunu
* ===========================================================
* Author : Nikola Trifunovic (https://www.github.com/johonunu)
*/
jQuery.trumbowyg.langs.rs_latin={viewHTML:"Poglеdaj HTML kód",formatting:"Formatiranjе",p:"Paragraf",blockquote:"Citat",code:"Kód",header:"Naslov",bold:"Podеbljano",italic:"Kurziv",strikethrough:"Prеcrtano",underline:"Podvučеno",strong:"Podеbljano",em:"Istaknuto",del:"Obrisano",unorderedList:"Nеnabrojiva lista",orderedList:"Nabrojiva lista",insertImage:"Unеsi sliku",insertVideo:"Unеsi vidеo",link:"Link",createLink:"Unеsi link",unlink:"Ukloni link",justifyLeft:"Lеvo ravnanjе",justifyCenter:"Cеntralno ravnanjе",justifyRight:"Dеsno ravnanjе",justifyFull:"Obostrano ravnanjе",horizontalRule:"Horizontalna linija",fullscreen:"Rеžim čitavog еkrana",close:"Zatvori",submit:"Unеsi",reset:"Otkaži",required:"Obavеzno poljе",invalidUrl:"URL",description:"Opis",title:"Naslov",text:"Tеkst"};

View File

@ -5,4 +5,4 @@
* ===========================================================
* Author : Yuri Lya
*/
jQuery.trumbowyg.langs.ru={viewHTML:"Посмотреть HTML",formatting:"Форматирование",p:"Обычный",blockquote:"Цитата",code:"Код",header:"Заголовок",bold:"Полужирный",italic:"Курсив",strikethrough:"Зачеркнутый",underline:"Подчеркнутый",strong:"Полужирный",em:"Курсив",del:"Зачеркнутый",unorderedList:"Обычный список",orderedList:"Нумерованный список",insertImage:"Вставить изображение",insertVideo:"Вставить видео",link:"Ссылка",createLink:"Вставить ссылку",unlink:"Удалить ссылку",justifyLeft:"По левому краю",justifyCenter:"По центру",justifyRight:"По правому краю",justifyFull:"По ширине",horizontalRule:"Горизонтальная линия",fullscreen:"Во весь экран",close:"Закрыть",submit:"Вставить",reset:"Отменить",invalidUrl:"Неверный URL",required:"Обязательное",description:"Описание",title:"Подсказка",text:"Текст"};
jQuery.trumbowyg.langs.ru={viewHTML:"Посмотреть HTML",formatting:"Форматирование",p:"Обычный",blockquote:"Цитата",code:"Код",header:"Заголовок",bold:"Полужирный",italic:"Курсив",strikethrough:"Зачеркнутый",underline:"Подчеркнутый",strong:"Полужирный",em:"Курсив",del:"Зачеркнутый",unorderedList:"Обычный список",orderedList:"Нумерованный список",insertImage:"Вставить изображение",insertVideo:"Вставить видео",link:"Ссылка",createLink:"Вставить ссылку",unlink:"Удалить ссылку",justifyLeft:"По левому краю",justifyCenter:"По центру",justifyRight:"По правому краю",justifyFull:"По ширине",horizontalRule:"Горизонтальная линия",fullscreen:"Во весь экран",close:"Закрыть",submit:"Вставить",reset:"Отменить",required:"Обязательное",description:"Описание",title:"Подсказка",text:"Текст"};

8
Scripts/trumbowyg/langs/sk.min.js vendored Normal file
View File

@ -0,0 +1,8 @@
/* ===========================================================
* sk.js
* Slovak translation for Trumbowyg
* http://alex-d.github.com/Trumbowyg
* ===========================================================
* Author : VeeeneX (https://github.com/VeeeneX)
*/
jQuery.trumbowyg.langs.sk={viewHTML:"Zobraziť HTML",formatting:"Formátovanie",p:"Paragraf",blockquote:"Citácia",code:"Kód",header:"Nadpis",bold:"Tučné",italic:"Kurzíva",strikethrough:"Preškrtnuté",underline:"Podčiarknuté",strong:"Tučné",em:"Zvýrazniť",del:"Zmazať",unorderedList:"Netriedený zoznam",orderedList:"Triedený zoznam",insertImage:"Vložiť obrázok",insertVideo:"Vložiť video",link:"Odkaz",createLink:"Vložiť odkaz",unlink:"Zmazať odkaz",justifyLeft:"Zarovnať doľava",justifyCenter:"Zarovnať na stred",justifyRight:"Zarovnať doprava",justifyFull:"Zarovnať do bloku",horizontalRule:"Vložit vodorovnú čiaru",fullscreen:"Režim celej obrazovky",close:"Zavrieť",submit:"Potvrdiť",reset:"Zrušiť",required:"Povinné",description:"Popis",title:"Nadpis",text:"Text"};

View File

@ -7,4 +7,4 @@
* Github : https://github.com/munzur
* Website: http://kafe.in/
*/
jQuery.trumbowyg.langs.tr={viewHTML:"HTML Kodu",formatting:"Biçimlendirme",p:"Paragraf",blockquote:"Alıntı",code:"Kod",header:"Başlık",bold:"Kalın",italic:"İtalik",strikethrough:"Orta çizgi",underline:"Alt çigzi",strong:"Koyu",em:"Vurgulu",del:"Üstü çizilmiş",unorderedList:"Numarasız liste",orderedList:"Numaralı liste",insertImage:"Resim yerleştir",insertVideo:"Video yerleştir",link:"Link",createLink:"Link yerleştir",unlink:"Linki sil",justifyLeft:"Sola hizala",justifyCenter:"Ortaya hizala",justifyRight:"Sağa hizala",justifyFull:"Yasla",horizontalRule:"Yatay çizgi ekle",fullscreen:"Tam ekran",close:"Kapat",submit:"Onayla",reset:"Sıfırla",invalidUrl:"Hatalı URL",required:"Gerekli",description:"Açıklama",title:"Başlık",text:"Metin"};
jQuery.trumbowyg.langs.tr={viewHTML:"HTML Kodu",formatting:"Biçimlendirme",p:"Paragraf",blockquote:"Alıntı",code:"Kod",header:"Başlık",bold:"Kalın",italic:"İtalik",strikethrough:"Orta çizgi",underline:"Alt çigzi",strong:"Koyu",em:"Vurgulu",del:"Üstü çizilmiş",unorderedList:"Numarasız liste",orderedList:"Numaralı liste",insertImage:"Resim yerleştir",insertVideo:"Video yerleştir",link:"Link",createLink:"Link yerleştir",unlink:"Linki sil",justifyLeft:"Sola hizala",justifyCenter:"Ortaya hizala",justifyRight:"Sağa hizala",justifyFull:"Yasla",horizontalRule:"Yatay çizgi ekle",fullscreen:"Tam ekran",close:"Kapat",submit:"Onayla",reset:"Sıfırla",required:"Gerekli",description:"Açıklama",title:"Başlık",text:"Metin"};

View File

@ -7,4 +7,4 @@
* Twitter : @akai404
* Github : https://github.com/akai
*/
jQuery.trumbowyg.langs.zh_cn={viewHTML:"源代码",formatting:"格式",p:"段落",blockquote:"引用",code:"代码",header:"标题",bold:"加粗",italic:"斜体",strikethrough:"删除线",underline:"下划线",strong:"加粗",em:"斜体",del:"删除线",unorderedList:"无序列表",orderedList:"有序列表",insertImage:"插入图片",insertVideo:"插入视频",link:"超链接",createLink:"插入链接",unlink:"取消链接",justifyLeft:"居左对齐",justifyCenter:"居中对齐",justifyRight:"居右对齐",justifyFull:"两端对齐",horizontalRule:"插入分隔线",fullscreen:"全屏",close:"关闭",submit:"确定",reset:"取消",invalidUrl:"无效的 URL",required:"必需的",description:"描述",title:"标题",text:"文字"};
jQuery.trumbowyg.langs.zh_cn={viewHTML:"源代码",formatting:"格式",p:"段落",blockquote:"引用",code:"代码",header:"标题",bold:"加粗",italic:"斜体",strikethrough:"删除线",underline:"下划线",strong:"加粗",em:"斜体",del:"删除线",unorderedList:"无序列表",orderedList:"有序列表",insertImage:"插入图片",insertVideo:"插入视频",link:"超链接",createLink:"插入链接",unlink:"取消链接",justifyLeft:"居左对齐",justifyCenter:"居中对齐",justifyRight:"居右对齐",justifyFull:"两端对齐",horizontalRule:"插入分隔线",fullscreen:"全屏",close:"关闭",submit:"确定",reset:"取消",required:"必需的",description:"描述",title:"标题",text:"文字"};

View File

@ -19,6 +19,10 @@
fr: {
base64: "Image en base64",
file: "Fichier"
},
cs: {
base64: "Vložit obrázek",
file: "Soubor"
}
},
@ -27,7 +31,9 @@
base64: {
isSupported: function(){
if(typeof FileReader === "undefined"){
console.err('[Trumbowyg - Plugin base64] FileReader is not supported by your browser.');
if (window.console !== undefined) {
console.err('[Trumbowyg - Plugin base64] FileReader is not supported by your browser.');
}
return false;
}
return true;
@ -66,7 +72,8 @@
$('input[type=file]').on('change', function(e){
file = e.target.files[0];
});
}
},
ico: 'insertImage'
}
}
}

View File

@ -1 +1 @@
!function(e){"use strict";e.extend(!0,e.trumbowyg,{langs:{en:{base64:"Image as base64",file:"File",errFileReaderNotSupported:"FileReader is not supported by your browser."},fr:{base64:"Image en base64",file:"Fichier"}},opts:{btnsDef:{base64:{isSupported:function(){return"undefined"==typeof FileReader?(console.err("[Trumbowyg - Plugin base64] FileReader is not supported by your browser."),!1):!0},func:function(r,t){var n;t.openModalInsert(t.lang.base64,{file:{type:"file",required:!0},alt:{label:"description"}},function(r){var a=new FileReader;a.onloadend=function(){t.execCmd("insertImage",a.result),e(['img[src="',a.result,'"]:not([alt])'].join(""),t.$box).attr("alt",r.alt),t.closeModal()},a.readAsDataURL(n)}),e("input[type=file]").on("change",function(e){n=e.target.files[0]})}}}}})}(jQuery);
!function(e){"use strict";e.extend(!0,e.trumbowyg,{langs:{en:{base64:"Image as base64",file:"File",errFileReaderNotSupported:"FileReader is not supported by your browser."},fr:{base64:"Image en base64",file:"Fichier"},cs:{base64:"Vložit obrázek",file:"Soubor"}},opts:{btnsDef:{base64:{isSupported:function(){return"undefined"==typeof FileReader?(void 0!==window.console&&console.err("[Trumbowyg - Plugin base64] FileReader is not supported by your browser."),!1):!0},func:function(o,r){var n;r.openModalInsert(r.lang.base64,{file:{type:"file",required:!0},alt:{label:"description"}},function(o){var t=new FileReader;t.onloadend=function(){r.execCmd("insertImage",t.result),e(['img[src="',t.result,'"]:not([alt])'].join(""),r.$box).attr("alt",o.alt),r.closeModal()},t.readAsDataURL(n)}),e("input[type=file]").on("change",function(e){n=e.target.files[0]})},ico:"insertImage"}}}})}(jQuery);

View File

@ -18,8 +18,12 @@
backColor: "Background color"
},
fr: {
foreColor: "Couleur du text",
foreColor: "Couleur du texte",
backColor: "Couleur de fond"
},
sk: {
foreColor: "Farba textu",
backColor: "Farba pozadia"
}
}
});
@ -63,7 +67,13 @@
};
dropdown.push(btn);
});
var btn = '_' + func + 'transparent';
$.trumbowyg.opts.btnsDef[btn] = {
func: func,
param: 'transparent',
style: 'background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAG0lEQVQIW2NkQAAfEJMRmwBYhoGBYQtMBYoAADziAp0jtJTgAAAAAElFTkSuQmCC);'
};
dropdown.push(btn);
return dropdown;
}
})(jQuery);
})(jQuery);

View File

@ -1 +1 @@
!function(f){"use strict";function o(o){var d=[];return f.each(f.trumbowyg.opts.colors,function(c,e){var b="_"+o+e;f.trumbowyg.opts.btnsDef[b]={func:o,param:"#"+e,style:"background-color: #"+e+";"},d.push(b)}),d}f.extend(!0,f.trumbowyg,{langs:{en:{foreColor:"Text color",backColor:"Background color"},fr:{foreColor:"Couleur du text",backColor:"Couleur de fond"}}}),f.extend(!0,f.trumbowyg,{opts:{btnsDef:{}}}),f.trumbowyg.opts.colors||(f.trumbowyg.opts.colors=["ffffff","000000","eeece1","1f497d","4f81bd","c0504d","9bbb59","8064a2","4bacc6","f79646","ffff00","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","fff2ca","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","ffe694","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","b7dde8","fac08f","f2c314","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","92cddc","e36c09","c09100","7f7f7f","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","31859b","974806","7f6000"]),f.extend(!0,f.trumbowyg,{opts:{btnsDef:{foreColor:{dropdown:o("foreColor")},backColor:{dropdown:o("backColor")}}}})}(jQuery);
!function(o){"use strict";function f(f){var e=[];o.each(o.trumbowyg.opts.colors,function(r,d){var b="_"+f+d;o.trumbowyg.opts.btnsDef[b]={func:f,param:"#"+d,style:"background-color: #"+d+";"},e.push(b)});var r="_"+f+"transparent";return o.trumbowyg.opts.btnsDef[r]={func:f,param:"transparent",style:"background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAG0lEQVQIW2NkQAAfEJMRmwBYhoGBYQtMBYoAADziAp0jtJTgAAAAAElFTkSuQmCC);"},e.push(r),e}o.extend(!0,o.trumbowyg,{langs:{en:{foreColor:"Text color",backColor:"Background color"},fr:{foreColor:"Couleur du texte",backColor:"Couleur de fond"},sk:{foreColor:"Farba textu",backColor:"Farba pozadia"}}}),o.extend(!0,o.trumbowyg,{opts:{btnsDef:{}}}),o.trumbowyg.opts.colors||(o.trumbowyg.opts.colors=["ffffff","000000","eeece1","1f497d","4f81bd","c0504d","9bbb59","8064a2","4bacc6","f79646","ffff00","f2f2f2","7f7f7f","ddd9c3","c6d9f0","dbe5f1","f2dcdb","ebf1dd","e5e0ec","dbeef3","fdeada","fff2ca","d8d8d8","595959","c4bd97","8db3e2","b8cce4","e5b9b7","d7e3bc","ccc1d9","b7dde8","fbd5b5","ffe694","bfbfbf","3f3f3f","938953","548dd4","95b3d7","d99694","c3d69b","b2a2c7","b7dde8","fac08f","f2c314","a5a5a5","262626","494429","17365d","366092","953734","76923c","5f497a","92cddc","e36c09","c09100","7f7f7f","0c0c0c","1d1b10","0f243e","244061","632423","4f6128","3f3151","31859b","974806","7f6000"]),o.extend(!0,o.trumbowyg,{opts:{btnsDef:{foreColor:{dropdown:f("foreColor")},backColor:{dropdown:f("backColor")}}}})}(jQuery);

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 983 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 926 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 995 B

View File

@ -1,5 +1,5 @@
/**
* Trumbowyg v1.1.7 - A lightweight WYSIWYG editor
* Trumbowyg v2.0.0-beta.2 - A lightweight WYSIWYG editor
* Colors plugin stylesheet for Trumbowyg editor
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
@ -40,16 +40,31 @@
* Buttons icons
*/
.trumbowyg-button-pane li button.trumbowyg-foreColor-button, .trumbowyg-button-pane li button.trumbowyg-backColor-button {
background-image: url("./images/icons.png"); }
background-image: url("./images/icons-black.png"); }
.trumbowyg-button-pane li button.trumbowyg-foreColor-button {
background-position: 5px -20px; }
.trumbowyg-button-pane li button.trumbowyg-backColor-button {
background-position: 5px 5px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-foreColor-button, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-backColor-button {
background-image: url("./images/icons-white.png"); }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-foreColor-button {
background-position: 5px -20px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-backColor-button {
background-position: 5px 5px; }
@media only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 4/3), only screen and (min-device-pixel-ratio: 1.3), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
.trumbowyg-button-pane li button.trumbowyg-foreColor-button, .trumbowyg-button-pane li button.trumbowyg-backColor-button {
background-image: url("./images/icons-2x.png") !important; }
background-image: url("./images/icons-black-2x.png") !important;
-webkit-background-size: 25px 50px !important;
background-size: 25px 50px !important; }
.trumbowyg-button-pane li button.trumbowyg-foreColor-button {
background-position: 5px -20px; }
.trumbowyg-button-pane li button.trumbowyg-backColor-button {
background-position: 5px 5px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-foreColor-button, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-backColor-button {
background-image: url("./images/icons-white-2x.png") !important; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-foreColor-button {
background-position: 5px -20px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-backColor-button {
background-position: 5px 5px; } }

View File

@ -1,2 +1,2 @@
/** Trumbowyg v1.1.7 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
.backColor-trumbowyg-dropdown,.foreColor-trumbowyg-dropdown{width:264px;padding:7px 5px}.backColor-trumbowyg-dropdown button,.foreColor-trumbowyg-dropdown button{display:block;position:relative;float:left;text-indent:-9999px;height:20px;width:20px;border:1px solid #333;padding:0;margin:2px}.backColor-trumbowyg-dropdown button:focus::after,.backColor-trumbowyg-dropdown button:hover::after,.foreColor-trumbowyg-dropdown button:focus::after,.foreColor-trumbowyg-dropdown button:hover::after{content:" ";display:block;height:27px;width:27px;background:inherit;position:absolute;top:-5px;left:-5px;border:1px solid #FFF;-webkit-box-shadow:#000 0 0 2px;box-shadow:#000 0 0 2px;z-index:10}.trumbowyg-button-pane li button.trumbowyg-backColor-button,.trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-image:url(./images/icons.png)}.trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-position:5px -20px}.trumbowyg-button-pane li button.trumbowyg-backColor-button{background-position:5px 5px}@media only screen and (-webkit-min-device-pixel-ratio:1.3),only screen and (min--moz-device-pixel-ratio:1.3),only screen and (-o-min-device-pixel-ratio:4/3),only screen and (min-device-pixel-ratio:1.3),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.trumbowyg-button-pane li button.trumbowyg-backColor-button,.trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-image:url(./images/icons-2x.png)!important}.trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-position:5px -20px}.trumbowyg-button-pane li button.trumbowyg-backColor-button{background-position:5px 5px}}
/** Trumbowyg v2.0.0-beta.2 - A lightweight WYSIWYG editor - alex-d.github.io/Trumbowyg - License MIT - Author : Alexandre Demode (Alex-D) / alex-d.fr */
.backColor-trumbowyg-dropdown,.foreColor-trumbowyg-dropdown{width:264px;padding:7px 5px}.backColor-trumbowyg-dropdown button,.foreColor-trumbowyg-dropdown button{display:block;position:relative;float:left;text-indent:-9999px;height:20px;width:20px;border:1px solid #333;padding:0;margin:2px}.backColor-trumbowyg-dropdown button:focus::after,.backColor-trumbowyg-dropdown button:hover::after,.foreColor-trumbowyg-dropdown button:focus::after,.foreColor-trumbowyg-dropdown button:hover::after{content:" ";display:block;height:27px;width:27px;background:inherit;position:absolute;top:-5px;left:-5px;border:1px solid #FFF;-webkit-box-shadow:#000 0 0 2px;box-shadow:#000 0 0 2px;z-index:10}.trumbowyg-button-pane li button.trumbowyg-backColor-button,.trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-image:url(./images/icons-black.png)}.trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-position:5px -20px}.trumbowyg-button-pane li button.trumbowyg-backColor-button{background-position:5px 5px}.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-backColor-button,.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-image:url(./images/icons-white.png)}.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-position:5px -20px}.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-backColor-button{background-position:5px 5px}@media only screen and (-webkit-min-device-pixel-ratio:1.3),only screen and (min--moz-device-pixel-ratio:1.3),only screen and (-o-min-device-pixel-ratio:4/3),only screen and (min-device-pixel-ratio:1.3),only screen and (min-resolution:192dpi),only screen and (min-resolution:2dppx){.trumbowyg-button-pane li button.trumbowyg-backColor-button,.trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-image:url(./images/icons-black-2x.png)!important;-webkit-background-size:25px 50px!important;background-size:25px 50px!important}.trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-position:5px -20px}.trumbowyg-button-pane li button.trumbowyg-backColor-button{background-position:5px 5px}.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-backColor-button,.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-image:url(./images/icons-white-2x.png)!important}.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-foreColor-button{background-position:5px -20px}.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-backColor-button{background-position:5px 5px}}

View File

@ -20,6 +20,11 @@
file: "File",
uploadError: "Error"
},
sk: {
upload: "Nahrať",
file: "Súbor",
uploadError: "Chyba"
},
fr: {
upload: "Envoi",
file: "Fichier",
@ -110,9 +115,16 @@
);
$('input[type=file]').on('change', function(e){
file = e.target.files[0];
try {
// If multiple files allowed, we just get the first.
file = e.target.files[0];
} catch (err) {
// In IE8, multiple files not allowed
file = e.target.value;
}
});
}
},
ico: 'insertImage'
}
}
}
@ -137,4 +149,4 @@
$.trumbowyg.addedXhrProgressEvent = true;
}
}
})(jQuery);
})(jQuery);

View File

@ -1 +1 @@
!function(e){"use strict";function r(){if(!e.trumbowyg&&!e.trumbowyg.addedXhrProgressEvent){var r=e.ajaxSettings.xhr;e.ajaxSetup({xhr:function(){var e=r(),o=this;return e&&"object"==typeof e.upload&&void 0!==o.progressUpload&&e.upload.addEventListener("progress",function(e){o.progressUpload(e)},!1),e}}),e.trumbowyg.addedXhrProgressEvent=!0}}r(),e.extend(!0,e.trumbowyg,{langs:{en:{upload:"Upload",file:"File",uploadError:"Error"},fr:{upload:"Envoi",file:"Fichier",uploadError:"Erreur"}},upload:{serverPath:"./src/plugins/upload/trumbowyg.upload.php"},opts:{btnsDef:{upload:{func:function(r,o){var a,t=o.o.prefix,n=o.openModalInsert(o.lang.upload,{file:{type:"file",required:!0},alt:{label:"description"}},function(){var r=new FormData;r.append("fileToUpload",a),0===e("."+t+"progress",n).length&&e("."+t+"modal-title",n).after(e("<div/>",{"class":t+"progress"}).append(e("<div/>",{"class":t+"progress-bar"}))),e.ajax({url:e.trumbowyg.upload.serverPath,type:"POST",data:r,cache:!1,dataType:"json",processData:!1,contentType:!1,progressUpload:function(r){e("."+t+"progress-bar").stop().animate({width:Math.round(100*r.loaded/r.total)+"%"},200)},success:function(r){"uploadSuccess"==r.message?(o.execCmd("insertImage",r.file),setTimeout(function(){o.closeModal()},250)):o.addErrorOnModalField(e("input[type=file]",n),o.lang[r.message])},error:function(){o.addErrorOnModalField(e("input[type=file]",n),o.lang.uploadError)}})});e("input[type=file]").on("change",function(e){a=e.target.files[0]})}}}}})}(jQuery);
!function(e){"use strict";function r(){if(!e.trumbowyg&&!e.trumbowyg.addedXhrProgressEvent){var r=e.ajaxSettings.xhr;e.ajaxSetup({xhr:function(){var e=r(),o=this;return e&&"object"==typeof e.upload&&void 0!==o.progressUpload&&e.upload.addEventListener("progress",function(e){o.progressUpload(e)},!1),e}}),e.trumbowyg.addedXhrProgressEvent=!0}}r(),e.extend(!0,e.trumbowyg,{langs:{en:{upload:"Upload",file:"File",uploadError:"Error"},sk:{upload:"Nahrať",file:"Súbor",uploadError:"Chyba"},fr:{upload:"Envoi",file:"Fichier",uploadError:"Erreur"}},upload:{serverPath:"./src/plugins/upload/trumbowyg.upload.php"},opts:{btnsDef:{upload:{func:function(r,o){var a,t=o.o.prefix,n=o.openModalInsert(o.lang.upload,{file:{type:"file",required:!0},alt:{label:"description"}},function(){var r=new FormData;r.append("fileToUpload",a),0===e("."+t+"progress",n).length&&e("."+t+"modal-title",n).after(e("<div/>",{"class":t+"progress"}).append(e("<div/>",{"class":t+"progress-bar"}))),e.ajax({url:e.trumbowyg.upload.serverPath,type:"POST",data:r,cache:!1,dataType:"json",processData:!1,contentType:!1,progressUpload:function(r){e("."+t+"progress-bar").stop().animate({width:Math.round(100*r.loaded/r.total)+"%"},200)},success:function(r){"uploadSuccess"==r.message?(o.execCmd("insertImage",r.file),setTimeout(function(){o.closeModal()},250)):o.addErrorOnModalField(e("input[type=file]",n),o.lang[r.message])},error:function(){o.addErrorOnModalField(e("input[type=file]",n),o.lang.uploadError)}})});e("input[type=file]").on("change",function(e){try{a=e.target.files[0]}catch(r){a=e.target.value}})},ico:"insertImage"}}}})}(jQuery);

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

View File

@ -1,5 +1,5 @@
/**
* Trumbowyg v1.1.7 - A lightweight WYSIWYG editor
* Trumbowyg v2.0.0-beta.2 - A lightweight WYSIWYG editor
* Default stylesheet for Trumbowyg editor
* ------------------------
* @link http://alex-d.github.io/Trumbowyg
@ -48,6 +48,20 @@
border: none;
white-space: normal; }
.trumbowyg-box.trumbowyg-editor-visible .trumbowyg-textarea {
position: absolute;
top: 37px;
height: 1px !important;
width: 25%;
min-height: 0 !important;
padding: 0 !important;
background: none; }
.trumbowyg-box.trumbowyg-editor-hidden .trumbowyg-textarea {
display: block; }
.trumbowyg-box.trumbowyg-editor-hidden .trumbowyg-editor {
display: none; }
.trumbowyg-editor[contenteditable=true]:empty:before {
content: attr(placeholder);
color: #999; }
@ -66,7 +80,8 @@
.trumbowyg-button-pane li {
display: inline-block;
text-align: center;
overflow: hidden; }
overflow: hidden;
padding: 0 !important; }
.trumbowyg-button-pane li.trumbowyg-separator {
width: 1px;
background: #d7e0e2;
@ -77,6 +92,8 @@
cursor: default; }
.trumbowyg-button-pane.trumbowyg-disable li.trumbowyg-separator {
background: #e3e9eb; }
.trumbowyg-button-pane li button {
padding: 1px 6px !important; }
.trumbowyg-button-pane:not(.trumbowyg-disable) li button:hover, .trumbowyg-button-pane:not(.trumbowyg-disable) li button:focus, .trumbowyg-button-pane li button.trumbowyg-active, .trumbowyg-button-pane li.trumbowyg-not-disable button:hover, .trumbowyg-button-pane li.trumbowyg-not-disable button:focus {
background-color: #FFF;
outline: none; }
@ -113,13 +130,12 @@
text-decoration: none;
background: #FFF;
padding: 0 14px;
color: #333;
color: #333 !important;
border: none;
cursor: pointer;
text-align: left;
font-size: 15px;
-webkit-transition: all 0.15s;
-o-transition: all 0.15s;
transition: all 0.15s; }
.trumbowyg-dropdown button:hover, .trumbowyg-dropdown button:focus {
background: #ecf0f1; }
@ -167,7 +183,6 @@
background: #2BC06A;
height: 100%;
-webkit-transition: width 0.15s linear;
-o-transition: width 0.15s linear;
transition: width 0.15s linear; }
.trumbowyg-modal-box label {
display: block;
@ -182,7 +197,6 @@
height: 25px;
line-height: 25px;
-webkit-transition: all 0.15;
-o-transition: all 0.15;
transition: all 0.15; }
.trumbowyg-modal-box label .trumbowyg-input-infos span {
display: block;
@ -209,7 +223,6 @@
padding: 0 2%;
margin: 0 0 0 23%;
-webkit-transition: all 0.15s;
-o-transition: all 0.15s;
transition: all 0.15s; }
.trumbowyg-modal-box label input:hover, .trumbowyg-modal-box label input:focus {
outline: none;
@ -238,7 +251,6 @@
font-family: "Trebuchet MS", Helvetica, Verdana, sans-serif;
font-size: 16px;
-webkit-transition: all 0.15s;
-o-transition: all 0.15s;
transition: all 0.15s; }
.trumbowyg-modal-box .trumbowyg-modal-button.trumbowyg-modal-submit {
right: 110px;
@ -267,6 +279,9 @@
/**
* Fullscreen
*/
body.trumbowyg-body-fullscreen {
overflow: hidden; }
.trumbowyg-fullscreen {
position: fixed;
top: 0;
@ -352,6 +367,60 @@
line-height: 22px !important;
margin-bottom: 7px !important; }
/*
* Black theme
*/
.trumbowyg-black .trumbowyg-button-pane {
background-color: #222;
border-bottom-color: #343434; }
.trumbowyg-black .trumbowyg-button-pane li.trumbowyg-separator {
background-color: #343434; }
.trumbowyg-black .trumbowyg-button-pane.trumbowyg-disable li.trumbowyg-separator {
background-color: #2a2a2a; }
.trumbowyg-black .trumbowyg-button-pane:not(.trumbowyg-disable) li button:hover, .trumbowyg-black .trumbowyg-button-pane:not(.trumbowyg-disable) li button:focus, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-active, .trumbowyg-black .trumbowyg-button-pane li.trumbowyg-not-disable button:hover, .trumbowyg-black .trumbowyg-button-pane li.trumbowyg-not-disable button:focus {
background-color: #555; }
.trumbowyg-black .trumbowyg-button-pane li .trumbowyg-open-dropdown:after {
border-top-color: #fff; }
.trumbowyg-black .trumbowyg-dropdown {
border-color: #222;
background: #222; }
.trumbowyg-black .trumbowyg-dropdown button {
background: #222;
color: #fff; }
.trumbowyg-black .trumbowyg-dropdown button:hover, .trumbowyg-black .trumbowyg-dropdown button:focus {
background: #555; }
.trumbowyg-black .trumbowyg-modal-box {
background-color: #222; }
.trumbowyg-black .trumbowyg-modal-box .trumbowyg-modal-title {
border-bottom: 1px solid #555;
color: #fff;
background: #3c3c3c; }
.trumbowyg-black .trumbowyg-modal-box label {
display: block;
position: relative;
margin: 15px 12px;
height: 27px;
line-height: 27px;
overflow: hidden; }
.trumbowyg-black .trumbowyg-modal-box label .trumbowyg-input-infos span {
color: #eee;
background-color: #2f2f2f;
border-color: #222; }
.trumbowyg-black .trumbowyg-modal-box label .trumbowyg-input-infos span.trumbowyg-msg-error {
color: #e74c3c; }
.trumbowyg-black .trumbowyg-modal-box label.trumbowyg-input-error input, .trumbowyg-black .trumbowyg-modal-box label.trumbowyg-input-error textarea {
border-color: #e74c3c; }
.trumbowyg-black .trumbowyg-modal-box label input {
border-color: #222;
color: #eee;
background: #333; }
.trumbowyg-black .trumbowyg-modal-box label input:hover, .trumbowyg-black .trumbowyg-modal-box label input:focus {
border-color: #95a5a6; }
.trumbowyg-black .trumbowyg-modal-box label input:focus {
background-color: rgba(230, 230, 255, 0.1); }
.trumbowyg-black .trumbowyg-overlay {
background-color: rgba(0, 0, 0, 0.5); }
/*
* Buttons icons
*/
@ -362,25 +431,24 @@
width: 35px;
height: 35px;
overflow: hidden;
background: transparent url("./images/icons.png") no-repeat;
background: transparent url("./images/icons-black.png") no-repeat;
border: none;
cursor: pointer;
-webkit-transition: background-color 0.15s, background-image 0.15s, opacity 0.15s;
-o-transition: background-color 0.15s, background-image 0.15s, opacity 0.15s;
transition: background-color 0.15s, background-image 0.15s, opacity 0.15s;
/* English and others */ }
.trumbowyg-button-pane li button.trumbowyg-viewHTML-button {
background-position: 5px -545px; }
background-position: 5px -570px; }
.trumbowyg-button-pane li button.trumbowyg-formatting-button {
background-position: 5px -120px; }
.trumbowyg-button-pane li button.trumbowyg-bold-button, .trumbowyg-button-pane li button.trumbowyg-strong-button {
background-position: 5px -45px; }
.trumbowyg-button-pane li button.trumbowyg-italic-button, .trumbowyg-button-pane li button.trumbowyg-em-button {
background-position: 5px 5px; }
background-position: 5px -270px; }
.trumbowyg-button-pane li button.trumbowyg-underline-button {
background-position: 5px -470px; }
background-position: 5px -495px; }
.trumbowyg-button-pane li button.trumbowyg-strikethrough-button, .trumbowyg-button-pane li button.trumbowyg-del-button {
background-position: 5px -445px; }
background-position: 5px -470px; }
.trumbowyg-button-pane li button.trumbowyg-link-button {
background-position: 5px -345px; }
.trumbowyg-button-pane li button.trumbowyg-insertImage-button {
@ -390,15 +458,17 @@
.trumbowyg-button-pane li button.trumbowyg-justifyCenter-button {
background-position: 5px -70px; }
.trumbowyg-button-pane li button.trumbowyg-justifyRight-button {
background-position: 5px -395px; }
background-position: 5px -420px; }
.trumbowyg-button-pane li button.trumbowyg-justifyFull-button {
background-position: 5px -295px; }
background-position: 5px 5px; }
.trumbowyg-button-pane li button.trumbowyg-unorderedList-button {
background-position: 5px -495px; }
background-position: 5px -520px; }
.trumbowyg-button-pane li button.trumbowyg-orderedList-button {
background-position: 5px -370px; }
.trumbowyg-button-pane li button.trumbowyg-horizontalRule-button {
background-position: 5px -220px; }
.trumbowyg-button-pane li button.trumbowyg-removeformat-button {
background-position: 5px -395px; }
.trumbowyg-button-pane li button.trumbowyg-fullscreen-button {
background-position: 5px -170px; }
.trumbowyg-button-pane li button.trumbowyg-close-button {
@ -416,29 +486,84 @@
.trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-bold-button, .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-strong-button {
background-position: 5px -195px; }
.trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-underline-button {
background-position: 5px -420px; }
background-position: 5px -445px; }
.trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-strikethrough-button, .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-del-button {
background-position: 5px -270px; }
background-position: 5px -295px; }
.trumbowyg-black {
/* French */ }
.trumbowyg-black .trumbowyg-button-pane li button {
background-image: url("./images/icons-white.png");
/* English and others */ }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-viewHTML-button {
background-position: 5px -570px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-formatting-button {
background-position: 5px -120px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-bold-button, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-strong-button {
background-position: 5px -45px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-italic-button, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-em-button {
background-position: 5px -270px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-underline-button {
background-position: 5px -495px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-strikethrough-button, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-del-button {
background-position: 5px -470px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-link-button {
background-position: 5px -345px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-insertImage-button {
background-position: 5px -245px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-justifyLeft-button {
background-position: 5px -320px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-justifyCenter-button {
background-position: 5px -70px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-justifyRight-button {
background-position: 5px -420px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-justifyFull-button {
background-position: 5px 5px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-unorderedList-button {
background-position: 5px -520px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-orderedList-button {
background-position: 5px -370px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-horizontalRule-button {
background-position: 5px -220px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-removeformat-button {
background-position: 5px -395px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-fullscreen-button {
background-position: 5px -170px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-close-button {
background-position: 5px -95px; }
.trumbowyg-black .trumbowyg-fullscreen .trumbowyg-button-pane li button.trumbowyg-fullscreen-button {
background-position: 5px -145px; }
.trumbowyg-black .trumbowyg-button-pane li:first-child button {
margin-left: 6px; }
.trumbowyg-black .trumbowyg-button-pane li:last-child button {
margin-right: 6px; }
.trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-bold-button, .trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-strong-button {
background-position: 5px -195px; }
.trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-underline-button {
background-position: 5px -445px; }
.trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-strikethrough-button, .trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-del-button {
background-position: 5px -295px; }
@media only screen and (-webkit-min-device-pixel-ratio: 1.3), only screen and (min--moz-device-pixel-ratio: 1.3), only screen and (-o-min-device-pixel-ratio: 4/3), only screen and (min-device-pixel-ratio: 1.3), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
/* French */
/* Black theme */
.trumbowyg-button-pane li button {
-webkit-background-size: 25px 575px !important;
background-size: 25px 575px !important;
background-image: url("./images/icons-2x.png") !important;
-webkit-background-size: 25px 600px !important;
background-size: 25px 600px !important;
background-image: url("./images/icons-black-2x.png") !important;
/* English and others */ }
.trumbowyg-button-pane li button.trumbowyg-viewHTML-button {
background-position: 5px -545px; }
background-position: 5px -570px; }
.trumbowyg-button-pane li button.trumbowyg-formatting-button {
background-position: 5px -120px; }
.trumbowyg-button-pane li button.trumbowyg-bold-button, .trumbowyg-button-pane li button.trumbowyg-strong-button {
background-position: 5px -45px; }
.trumbowyg-button-pane li button.trumbowyg-italic-button, .trumbowyg-button-pane li button.trumbowyg-em-button {
background-position: 5px 5px; }
background-position: 5px -270px; }
.trumbowyg-button-pane li button.trumbowyg-underline-button {
background-position: 5px -470px; }
background-position: 5px -495px; }
.trumbowyg-button-pane li button.trumbowyg-strikethrough-button, .trumbowyg-button-pane li button.trumbowyg-del-button {
background-position: 5px -445px; }
background-position: 5px -470px; }
.trumbowyg-button-pane li button.trumbowyg-link-button {
background-position: 5px -345px; }
.trumbowyg-button-pane li button.trumbowyg-insertImage-button {
@ -448,15 +573,17 @@
.trumbowyg-button-pane li button.trumbowyg-justifyCenter-button {
background-position: 5px -70px; }
.trumbowyg-button-pane li button.trumbowyg-justifyRight-button {
background-position: 5px -395px; }
background-position: 5px -420px; }
.trumbowyg-button-pane li button.trumbowyg-justifyFull-button {
background-position: 5px -295px; }
background-position: 5px 5px; }
.trumbowyg-button-pane li button.trumbowyg-unorderedList-button {
background-position: 5px -495px; }
background-position: 5px -520px; }
.trumbowyg-button-pane li button.trumbowyg-orderedList-button {
background-position: 5px -370px; }
.trumbowyg-button-pane li button.trumbowyg-horizontalRule-button {
background-position: 5px -220px; }
.trumbowyg-button-pane li button.trumbowyg-removeformat-button {
background-position: 5px -395px; }
.trumbowyg-button-pane li button.trumbowyg-fullscreen-button {
background-position: 5px -170px; }
.trumbowyg-button-pane li button.trumbowyg-close-button {
@ -466,6 +593,57 @@
.trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-bold-button, .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-strong-button {
background-position: 5px -195px; }
.trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-underline-button {
background-position: 5px -420px; }
background-position: 5px -445px; }
.trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-strikethrough-button, .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-del-button {
background-position: 5px -270px; } }
background-position: 5px -295px; }
.trumbowyg-black {
/* French */ }
.trumbowyg-black .trumbowyg-button-pane li button {
-webkit-background-size: 25px 600px !important;
background-size: 25px 600px !important;
background-image: url("./images/icons-white-2x.png") !important;
/* English and others */ }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-viewHTML-button {
background-position: 5px -570px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-formatting-button {
background-position: 5px -120px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-bold-button, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-strong-button {
background-position: 5px -45px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-italic-button, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-em-button {
background-position: 5px -270px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-underline-button {
background-position: 5px -495px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-strikethrough-button, .trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-del-button {
background-position: 5px -470px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-link-button {
background-position: 5px -345px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-insertImage-button {
background-position: 5px -245px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-justifyLeft-button {
background-position: 5px -320px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-justifyCenter-button {
background-position: 5px -70px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-justifyRight-button {
background-position: 5px -420px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-justifyFull-button {
background-position: 5px 5px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-unorderedList-button {
background-position: 5px -520px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-orderedList-button {
background-position: 5px -370px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-horizontalRule-button {
background-position: 5px -220px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-removeformat-button {
background-position: 5px -395px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-fullscreen-button {
background-position: 5px -170px; }
.trumbowyg-black .trumbowyg-button-pane li button.trumbowyg-close-button {
background-position: 5px -95px; }
.trumbowyg-black .trumbowyg-fullscreen .trumbowyg-button-pane li a.trumbowyg-fullscreen-button {
background-position: 5px -145px; }
.trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-bold-button, .trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-strong-button {
background-position: 5px -195px; }
.trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-underline-button {
background-position: 5px -445px; }
.trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-strikethrough-button, .trumbowyg-black .trumbowyg-fr .trumbowyg-button-pane li button.trumbowyg-del-button {
background-position: 5px -295px; } }

File diff suppressed because one or more lines are too long

View File

@ -1,12 +1,18 @@
@model BuildFeed.Models.Build
@{
ViewBag.Title = "Add a Build | BuildFeed";
ViewBag.Title = (string)(ViewContext.RouteData.Values["action"]) == "addBuild" ? "Add a Build | BuildFeed" : string.Format("Edit build {0} | BuildFeed", Model.FullBuildString);
Html.EnableClientValidation();
Html.EnableUnobtrusiveJavaScript();
}
<h2>Add a Build</h2>
@if ((string)(ViewContext.RouteData.Values["action"]) == "addBuild")
{
<h2>Add a Build</h2>
}
else
{
<h2>Edit build @Model.FullBuildString</h2>
}
<div class="form-horizontal">
<div class="form-group">
@ -105,7 +111,7 @@
<div class="col-sm-10">
<div class="row">
<div class="col-sm-6">
@Html.EditorFor(model => model.SourceType, "Enumeration")
@Html.DropDownListFor(model => model.SourceType, EnumHelper.GetSelectList(typeof(BuildFeed.Models.TypeOfSource)), new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.SourceType)
@ -120,7 +126,7 @@
@Html.TextBoxFor(model => model.LeakDate, "{0:dd/MM/yyyy}", new { @class = "form-control" })
</div>
<div class="col-sm-1">
<button onclick="$('#@Html.IdFor(model => model.LeakDate)').val('@DateTime.Now.ToString("dd/MM/yyyy")');return false;" class="btn btn-success btn-block">Today</button>
<button onclick="$('#@Html.IdFor(model => model.LeakDate)').val('@DateTime.Now.ToString("dd/MM/yyyy")');return false;" class="btn btn-success btn-block btn-reset">Today</button>
</div>
</div>
@Html.ValidationMessageFor(model => model.LeakDate)
@ -144,73 +150,13 @@
<div class="col-sm-10">
<div class="row">
<div class="col-sm-6">
@Html.EditorFor(model => model.FlightLevel, "Enumeration")
@Html.DropDownListFor(model => model.FlightLevel, EnumHelper.GetSelectList(typeof(BuildFeed.Models.LevelOfFlight)), new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.FlightLevel)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.BetaWikiUri, new { @class = "control-label col-sm-2" })
<div class="col-sm-10">
<div class="row">
<div class="col-sm-6">
@Html.TextBoxFor(model => model.BetaWikiUri, new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.BetaWikiUri)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.BetaWikiServerUri, new { @class = "control-label col-sm-2" })
<div class="col-sm-10">
<div class="row">
<div class="col-sm-6">
@Html.TextBoxFor(model => model.BetaWikiServerUri, new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.BetaWikiServerUri)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.WinWorldPCUri, new { @class = "control-label col-sm-2" })
<div class="col-sm-10">
<div class="row">
<div class="col-sm-6">
@Html.TextBoxFor(model => model.WinWorldPCUri, new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.WinWorldPCUri)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.BetaArchiveUri, new { @class = "control-label col-sm-2" })
<div class="col-sm-10">
<div class="row">
<div class="col-sm-6">
@Html.TextBoxFor(model => model.BetaArchiveUri, new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.BetaArchiveUri)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.LonghornMsUri, new { @class = "control-label col-sm-2" })
<div class="col-sm-10">
<div class="row">
<div class="col-sm-6">
@Html.TextBoxFor(model => model.LonghornMsUri, new { @class = "form-control" })
</div>
</div>
@Html.ValidationMessageFor(model => model.LonghornMsUri)
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type="submit" value="Submit Build" class="btn btn-primary" />
@ -259,16 +205,18 @@
'|', btnsGrps.lists]
});
$(".trumbowyg").addClass("trumbowyg-black");
$("#quickpaste").change(function () {
var regex = /([\d]{1,2})\.([\d]{1,2})\.([\d]{4,5})\.([\d]{1,5})\.([a-zA-Z0-9._\(\)-]+?)\.(\d\d\d\d\d\d-\d\d\d\d)/;
var regex = /(([\d]{1,2})\.([\d]{1,2})\.)?([\d]{4,5})(\.([\d]{1,5}))?\.([a-zA-Z0-9._\(\)-]+?)\.(\d\d\d\d\d\d-\d\d\d\d)/;
var result = regex.exec($("#quickpaste").val());
$("#MajorVersion").val(result[1]);
$("#MinorVersion").val(result[2]);
$("#Number").val(result[3]);
$("#Revision").val(result[4]);
$("#Lab").val(result[5]);
$("#BuildTime").val(result[6]);
$("#MajorVersion").val(result[2]);
$("#MinorVersion").val(result[3]);
$("#Number").val(result[4]);
$("#Revision").val(result[6]);
$("#Lab").val(result[7]);
$("#BuildTime").val(result[8]);
});
})
</script>

View File

@ -33,7 +33,7 @@
<label class="control-label col-sm-4">Editor Actions</label>
<div class="col-sm-8">
<p class="form-control-static">
@Html.ActionLink("Edit", "edit", new { id = Model.Id }, new { @class = "btn btn-default btn-xs" })
@Html.ActionLink("Edit", "editBuild", new { id = Model.Id }, new { @class = "btn btn-default btn-xs" })
@if (Roles.IsUserInRole("Administrators"))
{

View File

@ -28,7 +28,7 @@
</p>
<p>
<a href="@Url.Action("viewBuild", new { id = build.Id })" class="btn btn-info btn-xs">Info</a>
<a href="#" class="btn btn-primary btn-xs">Edit</a>
<a href="@Url.Action("editBuild", new { id = build.Id })" class="btn btn-primary btn-xs">Edit</a>
<a href="#" class="btn btn-danger btn-xs">Delete</a>
</p>
</div>

BIN
content/icons-2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
content/icons.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@ -26,13 +26,13 @@ h1
font-weight: 300;
}
.build-group-title .icon
{
font-size: 0.6em;
vertical-align: 3px;
display: inline-block;
margin-left: 0.3em;
}
.build-group-title .icon
{
font-size: 0.6em;
vertical-align: 3px;
display: inline-block;
margin-left: 0.3em;
}
.label-build-status
{
@ -65,6 +65,11 @@ label, .control-label, .help-block, .checkbox, .radio
font-size: 14px;
}
.btn-reset
{
padding: 9px 0 7px;
}
.table .btn
{
padding: 4px 9px;
@ -81,7 +86,7 @@ label, .control-label, .help-block, .checkbox, .radio
vertical-align: middle;
}
.trumbowyg-box.trumbowyg
.trumbowyg-box.trumbowyg, .trumbowyg-editor.trumbowyg
{
margin: 0;
width: 100%;