hackersir / ctf Goto Github PK
View Code? Open in Web Editor NEWHackerSir Crazy Team Fight!(ry
License: MIT License
HackerSir Crazy Team Fight!(ry
License: MIT License
麵包屑部分...或許可以試試Laravel Breadcrumbs
令Google搜尋結果可顯示麵包屑等結構化資訊
參考:自訂您的網站在搜尋結果中呈現的樣子
密碼不應該放在profile(個人資料)中,建議移動到auth或者其他正確的位置。
LaravelMenu 的@lm-attrs
是用來動態調整navbar屬性用的
以原本產給bootstrap用的樣板來看
@foreach($items as $item)
<li@lm-attrs($item) @if($item->hasChildren())class ="dropdown"@endif @lm-endattrs>
@if($item->link)
<a@lm-attrs($item->link) @if($item->hasChildren()) class="dropdown-toggle" data-toggle="dropdown" @endif @lm-endattrs href="{!! $item->url() !!}">
{!! $item->title !!}
@if($item->hasChildren()) <b class="caret"></b> @endif
</a>
@else
{!! $item->title !!}
@endif
@if($item->hasChildren())
<ul class="dropdown-menu">
@include(config('laravel-menu.views.bootstrap-items'), array('items' => $item->children()))
</ul>
@endif
</li>
@if($item->divider)
<li{!! Lavary\Menu\Builder::attributes($item->divider) !!}></li>
@endif
@endforeach
外層的li
使用@lm-attrs($item)
,令LaravelMenu可直接調整或追加屬性
內層的a
使用@lm-attrs($item->link)
,令LaravelMenu可根據所在頁面調整active狀態
但目前我們的樣板
兩者需調整的class位於同一層
似乎無法對同一個class包兩層@lm-attrs
之後會把設定存到DB裡了,要把Config::get('site.name')換成讀取DB中的設定。
今天寫了註冊和登入小測試
有用到資料庫
不過在 Travis CI 似乎連不上資料庫
https://travis-ci.org/HackerSir/CTF/jobs/149715334
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.