static App() { App._mutex = new Object(); App.Instance = new App(); V_0 = null; App.Instance._mediaTypes.get_Documents().Add(".pdf", "application/pdf", V_0); V_0 = null; App.Instance._mediaTypes.get_Images().Add(".jpg", "image/jpeg", V_0); V_0 = null; App.Instance._mediaTypes.get_Images().Add(".jpeg", "image/jpeg", V_0); V_0 = null; App.Instance._mediaTypes.get_Images().Add(".png", "image/png", V_0); V_0 = null; App.Instance._mediaTypes.get_Videos().Add(".mp4", "video/mp4", V_0); V_0 = null; App.Instance._mediaTypes.get_Audio().Add(".mp3", "audio/mpeg", V_0); V_0 = null; App.Instance._mediaTypes.get_Audio().Add(".wav", "audio/wav", V_0); App.Instance._fields.Register <AudioField>(); App.Instance._fields.Register <CheckBoxField>(); App.Instance._fields.Register <DateField>(); App.Instance._fields.Register <DocumentField>(); App.Instance._fields.Register <HtmlField>(); App.Instance._fields.Register <ImageField>(); App.Instance._fields.Register <MarkdownField>(); App.Instance._fields.Register <MediaField>(); App.Instance._fields.Register <NumberField>(); App.Instance._fields.Register <PageField>(); App.Instance._fields.Register <PostField>(); App.Instance._fields.Register <ReadonlyField>(); App.Instance._fields.Register <StringField>(); App.Instance._fields.Register <TextField>(); App.Instance._fields.Register <VideoField>(); App.Instance._fields.RegisterSelect <ImageAspect>(); App.Instance._blocks.Register <AudioBlock>(); App.Instance._blocks.Register <ColumnBlock>(); App.Instance._blocks.Register <HtmlBlock>(); App.Instance._blocks.Register <HtmlColumnBlock>(); App.Instance._blocks.Register <ImageBlock>(); App.Instance._blocks.Register <ImageGalleryBlock>(); App.Instance._blocks.Register <PageBlock>(); App.Instance._blocks.Register <PostBlock>(); App.Instance._blocks.Register <QuoteBlock>(); App.Instance._blocks.Register <SeparatorBlock>(); App.Instance._blocks.Register <TextBlock>(); App.Instance._blocks.Register <VideoBlock>(); App.Instance._serializers.Register <CheckBoxField>(new CheckBoxFieldSerializer <CheckBoxField>()); App.Instance._serializers.Register <DateField>(new DateFieldSerializer()); App.Instance._serializers.Register <DocumentField>(new DocumentFieldSerializer()); App.Instance._serializers.Register <HtmlField>(new StringFieldSerializer <HtmlField>()); App.Instance._serializers.Register <MarkdownField>(new StringFieldSerializer <MarkdownField>()); App.Instance._serializers.Register <MediaField>(new MediaFieldSerializer()); App.Instance._serializers.Register <NumberField>(new IntegerFieldSerializer <NumberField>()); App.Instance._serializers.Register <PageField>(new PageFieldSerializer()); App.Instance._serializers.Register <PostField>(new PostFieldSerializer()); App.Instance._serializers.Register <StringField>(new StringFieldSerializer <StringField>()); App.Instance._serializers.Register <TextField>(new StringFieldSerializer <TextField>()); App.Instance._serializers.Register <ImageField>(new ImageFieldSerializer()); App.Instance._serializers.Register <VideoField>(new VideoFieldSerializer()); App.Instance._serializers.Register <AudioField>(new AudioFieldSerializer()); App.Instance._markdown = new DefaultMarkdown(); stackVariable154 = App.Instance._permissions.get_Item("Core"); stackVariable155 = new PermissionItem(); stackVariable155.set_Name("PiranhaPagePreview"); stackVariable155.set_Title("Page Preview"); stackVariable155.set_IsInternal(true); stackVariable154.Add(stackVariable155); stackVariable162 = App.Instance._permissions.get_Item("Core"); stackVariable163 = new PermissionItem(); stackVariable163.set_Name("PiranhaPostPreview"); stackVariable163.set_Title("Post Preview"); stackVariable163.set_IsInternal(true); stackVariable162.Add(stackVariable163); return; }