Skip to content

Instantly share code, notes, and snippets.

View Sampath-Lokuge's full-sized avatar
🏠
Working from home

Sampath Lokuge Sampath-Lokuge

🏠
Working from home
View GitHub Profile
`D:\Freelance-Work\Clients\Daniel\2017master>npm run build:aot
> [email protected] build:aot D:\Freelance-Work\Clients\Daniel\2017master
> npm run build:aot:prod
> [email protected] build:aot:prod D:\Freelance-Work\Clients\Daniel\2017master
> npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1 npm run webpack -- --config config/webpack.prod.js --progress --profile --bail
import { Component, OnInit } from "@angular/core";
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
import Mixpanel from "../../mixpanel.functions";
import { RegexValidators } from "../constants/validator";
import { UserSessionService } from "../services/security/user-session.service";
import { SiteNotificationService } from "../services/common/sitenotification.service";
import { HttpCommonService } from "../services/common/httpcommon.service";
import { JwtHelperService } from '@auth0/angular-jwt';
import { Injectable, Injector } from '@angular/core';
import { AngularFirestore, AngularFirestoreCollection } from 'angularfire2/firestore';
import { BudgetGroup } from '../../models/BudgetGroup';
import * as moment from 'moment';
import { forEach } from 'lodash';
import { AuthenticationProvider } from '../authentication/authentication';
@Injectable()
export class BudgetGroupProvider {
private authenticationProvider: AuthenticationProvider;
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, ModalController, Platform, Loading } from 'ionic-angular';
import { AppSetting } from '../../app/app.settings';
import { PlayListProvider } from '../../providers/play-list/playlist-provider';
import { PlayList } from '../../models/PlayList';
import { LoadingProvider } from '../../providers/loading/loading';
import { forEach } from 'lodash';
import { MediaItem } from '../../models/media-item';
@IonicPage()
@Sampath-Lokuge
Sampath-Lokuge / playlist-provider.ts
Created June 19, 2018 12:28
playlist-provider.ts
import { Injectable } from '@angular/core';
import { HttpWrapper } from '../providers';
import { AppSetting } from '../../app/app.settings';
import { Observable } from 'rxjs/Observable';
import { OrderPlaylistMediaItem } from '../../models/OrderPlaylistMediaItem';
import { BehaviorSubject } from 'rxjs';
@Injectable()
export class PlayListProvider {
@Sampath-Lokuge
Sampath-Lokuge / PlayList.ts
Last active June 19, 2018 12:39
PlayList.ts
import { MediaItem } from "./media-item";
export interface PlayList {
id: number;
text: string;
imageUrl: string;
mediaItems: MediaItem[];
}
@Sampath-Lokuge
Sampath-Lokuge / AgentAppService.cs
Created June 19, 2018 11:40
AgentAppService.cs
using System.Collections.Generic;
using System.Data.Entity;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Threading.Tasks;
using Abp.Application.Services.Dto;
using Abp.Authorization;
using Abp.AutoMapper;
using Abp.Domain.Repositories;
using Abp.Domain.Uow;
@Sampath-Lokuge
Sampath-Lokuge / IAgentAppService.cs
Created June 19, 2018 11:39
IAgentAppService.cs
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using IP.Agents.Dtos;
namespace IP.Agents
{
public interface IAgentAppService : IApplicationService
{
Task<ListResultDto<AgentListDto>> GetAllAgentsAsync();
@Sampath-Lokuge
Sampath-Lokuge / commentForm.cshtml
Created June 19, 2018 11:07
commentForm.cshtml
@using IP.Comments
@*Comment Form*@
<div ng-controller="tenant.views.propertymanagement.tabs.commentForm as commentFormCtrl">
<div style="overflow: auto;">
<div class="comment-form-wrapper">
<table class="table table-bordered table-hover table-condensed fixed-size">
<tr style="font-weight: bold">
<td style="width: 12.5%">@L("CsDate")</td>
@Sampath-Lokuge
Sampath-Lokuge / commentForm.js
Created June 19, 2018 11:05
commentForm.js
(function () {
appModule.controller("tenant.views.propertymanagement.tabs.commentForm", [
"$scope", "$uibModal", "$window", "abp.services.app.propertyStatusContact", "abp.services.app.status",
"abp.services.app.comment", function ($scope, $uibModal, $window, propertyStatusContactService, statusService, commentService) {
var vm = this;
vm.saving = false;
vm.property = {
id: null
};