diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-02-28 21:33:16 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-02-28 21:33:16 +0400 |
commit | 4e2a50bb1a5e98c77d0183acbb08610ebf282756 (patch) | |
tree | be1814b5d8ea174af83650a12faf199bf86c1394 /reader | |
parent | f284d239e5feb53230ac0b7a5f43ac6de340e8b2 (diff) |
Remove uneeded files
Diffstat (limited to 'reader')
-rwxr-xr-x | reader/templates/.goutputstream-9T50LW | 123 | ||||
-rwxr-xr-x | reader/templates/.goutputstream-SP0SLW | 163 |
2 files changed, 0 insertions, 286 deletions
diff --git a/reader/templates/.goutputstream-9T50LW b/reader/templates/.goutputstream-9T50LW deleted file mode 100755 index d5f734dd5..000000000 --- a/reader/templates/.goutputstream-9T50LW +++ /dev/null @@ -1,123 +0,0 @@ -<style> - #the-canvas{ - align:middle; - } - #thumbnailContainer { - margin-top:100px; - vertical-align:left; - } - .thumbnail { - margin-left:20px;; - } -</style> -<script type="text/javascript"> - // Specify the main script used to create a new PDF.JS web worker. - // In production, change this to point to the combined `pdf.js` file. - PDFJS.workerSrc = 'apps/reader/js/pdf.js'; -</script> - - -<div id = "controls"> - <?php - // Get the current directory. - $dir = empty($_['dir'])?'/':$_['dir']; - $base_url = OCP\Util::linkTo('reader', 'index.php').'&dir='; - - $curr_path = ''; - $path = explode( '/', trim($dir,'/')); - if( $path != '' ){ - for($i=0; $i<count($path); $i++){ - $curr_path .= '/'.str_replace('+','%20', urlencode($path[$i]));?> - <div class="crumb <?php if($i == count($path)-1) echo 'last';?> svg" data-dir='<?php echo $curr_path;?>' style='background-image:url("<?php echo OCP\image_path('core','breadcrumb.png');?>")'> - <a href="<?php echo $base_url.$curr_path.'/'; ?>"><?php echo htmlentities($path[$i],ENT_COMPAT,'utf-8'); ?></a> - </div> - <?php } - } - ?> - - <div id="file_action_panel"></div> - <!-- Set dir value to be passed to integrate.js --> - <input type="hidden" name="dir" value="<?php echo empty($_['dir'])?'':rtrim($_['dir'],'/') ?>" id="dir"> -</div> -<div class="actions"></div> -<?php - // Get the current directory. - $dir = empty($_['dir'])?'/':$_['dir']; - - // Search for pdf files in current directory. - $pdfs = \OC_FileCache::searchByMime('application', 'pdf', '/'.\OCP\USER::getUser().'/files'.$dir); - sort($pdfs); - - // Construct an array, to store pdf files and directory names, in which pdf files reside. - $files = array(); - // Store file info in the file array. - foreach ($pdfs as $pdf) { - $file_info = pathinfo($pdf); - $file = array(); - $file['dirname'] = $file_info['dirname']; - $file['basename'] = $file_info['filename']; - $file['filename'] = $file_info['basename']; - $file['extension'] = '.'.$file_info['extension']; - $files[] = $file; - } -?> - -<table> - <tbody id = "fileList"> - <?php - // Array to store directory entries, which contain pdfs. - $dirs = array(); - foreach ($files as $file) { - // Encode the file and directory names so that they can be used in querying a url. - $name = str_replace('+','%20',urlencode($file['filename'])); - $name = str_replace('%2F','/', $name); - $directory = str_replace('+','%20',urlencode($dir)); - $directory = str_replace('%2F','/', $directory); - if ($file['dirname'] == '.') { - ?> - <!-- Each tr displays a file --> - <tr id = "row" data-file="<?php echo $name;?>" data-type="<?php echo 'file'?>" data-mime="<?php echo 'application/pdf'?>" data-size="3462755" data-write="true" > - <td class="filename svg" style="background-image:url(<?php echo OCP\mimetype_icon('application/pdf'); ?>)"> - <a class="name" href="http://localhost<?php echo \OCP\Util::linkTo('files', 'download.php').'?file='.$directory.$name; ?>" title=""> - <div id = "carrier"> - <span class = "nametext"> - <?php echo htmlspecialchars($file['basename']);?><span class='extension'><?php echo $file['extension'];?></span> - </span> - </div> - </a> - </td> - </tr> - <?php - echo '<br>'; - } - else { - // Trim the extra slash that we don't need. - $dir_name = ltrim($file['dirname'], '/'); - // Explode the variable to check if the pdf file is contained in a directory. - $dir_array = explode('/', $dir_name); - // Each tr entry here contains name of a directory which has a link to reader/index.php. - // TODO: correct mime type to be rendered explicitly. - $d = '<tr data-file="'.$dir_array[0].'" data-type="dir" data-mime="httpd/unix-directory"> - <td class="filename svg" style="background-image:url('.OCP\mimetype_icon('dir').')"> - <a class = "name" href = "'.OCP\Util::linkTo('reader', 'index.php').'&dir='.$dir.$dir_array[0].'/"> - <span class = "nametext">'. - htmlspecialchars($dir_array[0]). - '</span> - </a> - </td> - </tr>'; - /* Store the directory entries in an array so that incase 2 pdf files are conatined in a directory - * we don't end up printing the directory name twice. */ - if (!in_array($d, $dirs)) { - $dirs[] = $d; - echo $d; - echo '<br>'; - } - } - } - ?> - </tbody> -</table> - -<!--<script type="text/javascript" src="apps/reader/js/integrate.js"></script> ---> diff --git a/reader/templates/.goutputstream-SP0SLW b/reader/templates/.goutputstream-SP0SLW deleted file mode 100755 index def2264c1..000000000 --- a/reader/templates/.goutputstream-SP0SLW +++ /dev/null @@ -1,163 +0,0 @@ -<style> - div.crumb { float:left; display:block; background:no-repeat right 0; padding:.75em 1.5em 0 1em; height:2.9em; } -div.crumb:first-child { padding-left:1em; } -div.crumb.last { font-weight:bold; } - div.thumbnail { - box-shadow: 5px 5px 5px #888888; - border:1px solid #888888; - -webkit-border-radius: 3px; /* Safari 3-4, iOS 1-3.2, Android ≤1.6 */ - border-radius: 3px; - } - - tbody tr { - background:white; - float:left; - height:200px; - width:200px; - font-size:10px; - margin-right:15px; - - } - tbody tr:hover, tbody tr:active, tbody tr.selected { background-color:#f8f8f8; } - .thumbnail:not([data-loaded]) { - background-color: white; -} -td.filename.svg{ - background:no-repeat; - background-position:center; - height:200px; - width:200px; - white-space:normal; -} -td.filename.svg:hover{ - background-color:#f8f8f8; -} -table { - margin-left:10px; - margin-top:30px; - <!--width:100%;--> - display:inline-block; -} -span.nametext{ - font-weight:bold; - margin-left:3px; - margin-right:3px; - text-transform:capitalize; -} - .extension{ - text-transform:lowercase; - } - -</style> -<script type="text/javascript"> - // Specify the main script used to create a new PDF.JS web worker. - // In production, change this to point to the combined `pdf.js` file. - PDFJS.workerSrc = 'apps/reader/js/pdf.js'; -</script> - - -<div id = "controls"> - <?php - // Get the current directory. - $dir = empty($_['dir'])?'/':$_['dir']; - $base_url = OCP\Util::linkTo('reader', 'index.php').'&dir='; - - $curr_path = ''; - $path = explode( '/', trim($dir,'/')); - if( $path != '' ){ - for($i=0; $i<count($path); $i++){ - $curr_path .= '/'.str_replace('+','%20', urlencode($path[$i]));?> - <div class="crumb <?php if($i == count($path)-1) echo 'last';?> svg" data-dir='<?php echo $curr_path;?>' style='background-image:url("<?php echo OCP\image_path('core','breadcrumb.png');?>")'> - <a href="<?php echo $base_url.$curr_path.'/'; ?>"><?php echo htmlentities($path[$i],ENT_COMPAT,'utf-8'); ?></a> - </div> - <?php } - } - ?> - - <div id="file_action_panel"></div> - <!-- Set dir value to be passed to integrate.js --> - <input type="hidden" name="dir" value="<?php echo empty($_['dir'])?'':rtrim($_['dir'],'/') ?>" id="dir"> -</div> -<div class="actions"></div> -<?php - // Get the current directory. - $dir = empty($_['dir'])?'/':$_['dir']; - - // Search for pdf files in current directory. - $pdfs = \OC_FileCache::searchByMime('application', 'pdf', '/'.\OCP\USER::getUser().'/files'.$dir); - sort($pdfs); - - // Construct an array, to store pdf files and directory names, in which pdf files reside. - $files = array(); - // Store file info in the file array. - foreach ($pdfs as $pdf) { - $file_info = pathinfo($pdf); - $file = array(); - $file['dirname'] = $file_info['dirname']; - $file['basename'] = $file_info['filename']; - $file['filename'] = $file_info['basename']; - $file['extension'] = '.'.$file_info['extension']; - $files[] = $file; - } -?> - -<table> - <tbody id = "fileList"> - <?php - // Array to store directory entries, which contain pdfs. - $dirs = array(); - foreach ($files as $file) { - // Encode the file and directory names so that they can be used in querying a url. - $name = str_replace('+','%20',urlencode($file['filename'])); - $name = str_replace('%2F','/', $name); - $directory = str_replace('+','%20',urlencode($dir)); - $directory = str_replace('%2F','/', $directory); - if ($file['dirname'] == '.') { - ?> - <!-- Each tr displays a file --> - <tr id = "row" data-file="<?php echo $name;?>" data-type="<?php echo 'file'?>" data-mime="<?php echo 'application/pdf'?>" data-size="3462755" data-write="true" > - <td class="filename svg"> - <a class="name" id = "http://localhost<?php echo \OCP\Util::linkTo('files', 'download.php').'?file='.$directory.$name; ?>" href="http://localhost<?php echo \OCP\Util::linkTo('files', 'download.php').'?file='.$directory.$name; ?>" title=""> - <center> - <span class = "nametext"> - <?php echo htmlspecialchars($file['basename']);?><span class='extension'><?php echo $file['extension'];?></span> - </span> - </center> - </a> - </td> - </tr> - <?php - echo '<br>'; - } - else { - // Trim the extra slash that we don't need. - $dir_name = ltrim($file['dirname'], '/'); - // Explode the variable to check if the pdf file is contained in a directory. - $dir_array = explode('/', $dir_name); - // Each tr entry here contains name of a directory which has a link to reader/index.php. - // TODO: correct mime type to be rendered explicitly. - $d = '<tr data-file="'.$dir_array[0].'" data-type="dir" data-mime="httpd/unix-directory"> - <td class="filename svg" style="background-image:url('.OCP\mimetype_icon('dir').')"> - <a class = "name" href = "'.OCP\Util::linkTo('reader', 'index.php').'&dir='.$dir.$dir_array[0].'/"> - <span class = "nametext">'. - htmlspecialchars($dir_array[0]). - '</span> - </a> - </td> - </tr>'; - /* Store the directory entries in an array so that incase 2 pdf files are conatined in a directory - * we don't end up printing the directory name twice. */ - if (!in_array($d, $dirs)) { - $dirs[] = $d; - echo $d; - echo '<br>'; - } - } - } - ?> - </tbody> -</table> - -<!--<script type="text/javascript" src="apps/reader/js/integrate.js"></script> ---> -<!--style="background-image:url(<?php /*echo OCP\mimetype_icon('application/pdf'); */?>)"--> |